Local process safe document DB for python

Hello,

I am looking for a good library that can provide a local (file based) document db for python. Since I am using it to synchronize the backend and the frontend it should be process and thread safe. I had a look at TinyDB, but I ma not sure it is process safe.

Any suggestions?

UPDATE: I am looking for a schemaless db