Optimising python-gremlin for fastApi - Apache TinkerPop