revising checkout.py