Updated joint_shelves.py to remember shelve last used.