Encoding and traversing (through python) the neo4j network