Knapsack problem: solution on Python with Genetic algorithm