Pydot fix

Addresses #923

I think this is really a bug in pydot and probably should be fixed there.