from app import store if __name__ == '__main__': store.pool.open(wait=True, timeout=30) try: store.init() finally: store.pool.close()