from person import Person, Manager bob = Person('Bob Smith') sue = Person('Sue Jones', job='dev', pay=100000) tom = Manager('Tom Jones', 100000) import shelve db = shelve.open('scottdb') db['bob'] = bob db['sue'] = sue db['tom'] = tom db.close()