Genetic algorithms in python