moved checkout.py to shell.py