Adapted to use py2neo-gremlin such that we can access current versions of py2neo.