Assuming your Random Forest model is already fitted,
first you should first import the export_graphviz
function:
from sklearn.tree import export_graphviz
In your for cycle you could do the following to generate the dot
file
export_graphviz(tree_in_forest,
feature_names=X.columns,
filled=True,
rounded=True)
The next line generates a png file
os.system('dot -Tpng tree.dot -o tree.png')