old_contents: import sae
  
  def app(environ, start_response):
      status = '200 OK'
      response_headers = [('Content-type', 'text/plain')]
      start_response(status, response_headers)
      return ['Hello, world!']
  
  application = sae.create_wsgi_app(app)
  
new_contents: import os
  
  import sae
  import web
  
  urls = (
      '/', 'Hello'
  )
  
  app_root = os.path.dirname(__file__)
  templates_root = os.path.join(app_root, 'templates')
  render = web.template.render(templates_root)
  
  class Hello:
      def GET(self):
          return render.hello()
  
  app = web.application(urls, globals()).wsgifunc()
  
  application = sae.create_wsgi_app(app)
  
subject: Move to web.py