Patch for fixing graph issues caused by some incompatibilities after migration from Python 2.7 to 3.7
mentioned in issue #21