Function setup_app has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open
def setup_app(loop=asyncio.get_event_loop(), config=load_config()[0]):
"""Create the app and initiate all services (database, security, etc).
Parameters
----------