old_contents: if __name__ == "__main__":
      from plenario import create_app
      application = create_app()
      application.run(host="0.0.0.0")
  
new_contents: from plenario import create_app
  application = create_app()
  
  if __name__ == "__main__":
      application.run(host="0.0.0.0")
  
subject: Move 'application' outside of if '__main__' -.-