[new_client]: Refactored the flask app structure so as to not rely on module __init__ and thus avoid potential circular dependencies