Branch And Bound Knapsack Python