Genetic Algorithm Python