Fixing the really shitty code Eric wrote in the python cypher

See above