Python Knapsack Problem Using Greedy