automatic persistence for Python objects