def METHOD_NAME(self):
    dbenv = db.DBEnv()
    dbenv.open(self.homeDir,
               db.DB_INIT_CDB| db.DB_CREATE |db.DB_THREAD|db.DB_INIT_MPOOL,
               0666)
    d = db.DB(dbenv)
    d.open(self.filename, db.DB_BTREE, db.DB_CREATE | db.DB_THREAD, 0666)
    dbenv.close()  # This "close" should close the child db handle also
    del d
    try:
        import gc
    except ImportError:
        gc = None
    if gc:
        # force d.__del__ [DB_dealloc] to be called
        gc.collect()