shelves or ZODB are really good options. There's also persidict, a Python tool that works like a key-value dictionary but keeps its data saved on your disk or in an AWS S3 bucket.
shelves
ZODB
persidict