Add checkout.py class Cart

I created a checkout.py file with a class Cart for creating shopping carts and retrieving information from shopping carts.