def update_repos(): engine = create_engine(db_url) DBSession.configure(bind=engine) sync_tarballs(DBSession)