In the spirit of Python's shelve module.