$ py
Python 2.7.8 |Anaconda 2.1.0 (64-bit) ... on win32
>>> import bsddb
>>> print bsddb.__doc__
Support for Berkeley DB 4.3 through 5.3 with a simple interface.
For the full featured object oriented interface use the bsddb.db module instead. It mirrors the Oracle Berkeley DB C API.
https://docs.python.org/3.4/library/shelve.html
stdlib have various ways to persist, if needed.