pydot improved version with Python 2.7 - Python 3 support.