Using the shelve module is like using a dictionarty. The only difference is that you must open the file first, and it is done like this: book = shelve.open("addresses") Here is a simple tutorial about shelving objects - http://www.wdvl.com/Authoring/Languages/Python/Quick/python6_3.html Good luck!!