import shelve db = shelve.open('lmcodb') for key in db: print key, '=>', db[key] sue = db['sue'] sue.giveRaise(.10) db['sue'] = sue db.close()