Coin Change Algorithm Python