Sequential Genetic Algorithm Python