After you add the PATH variable it looks like you are importing StringIO then calling StringIO.StringIO()
try just calling:
dot_data = StringIO()
Works for my python 2.7.6 Win7 x64 environment with the pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible fix.