There is a module for graphviz usage. Installed by Anaconda. It would be convenient to use it, instaed of calling "dot" as a subprocess.