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