if __name__ == "__main__":
    from plenario import create_app
    application = create_app()
    application.run(host="0.0.0.0")

from plenario import create_app
application = create_app()

if __name__ == "__main__":
    application.run(host="0.0.0.0")

Move 'application' outside of if '__main__' -.-
Move 'application' outside of if '__main__' -.-
