Update cart.py

Please update code in the Cart.py