GeneNet convert scripts in python