Changing project to Genetic Programming in Python