Solving the Plus Minus Problem in Python