Update checkin.py 

Fixing emptying list when closed