Update cypher plugin for python 3

Updates cypher plugin to work with python 3, also renames some variables in it.