Berkeleydb comes with a Sqlite api-compatible library. Using this, you effectively get sqlite with page level locking as opposed to database. Instructions here for compiling:<p><a href="http:&#x2F;&#x2F;charlesleifer.com&#x2F;blog&#x2F;building-the-python-sqlite-driver-for-use-with-berkeleydb&#x2F;" rel="nofollow">http:&#x2F;&#x2F;charlesleifer.com&#x2F;blog&#x2F;building-the-python-sqlite-dri...</a>