Knapsack Problem Genetic Algorithm Python