Hybrid Genetic Algorithm Example Python Loop