code: def main(global_config, **settings):
      
      from pyramid.config import Configurator
  
      config = Configurator(settings=settings)
  
      # include twitcher components
      config.include('twitcher.config')
      config.include('twitcher.frontpage')
      config.include('twitcher.rpcinterface')
      config.include('twitcher.owsproxy')
  
      # tweens/middleware
      # TODO: maybe add tween for exception handling or use unknown_failure view
      config.include('twitcher.tweens')
  
      config.scan()
  
      return config.make_wsgi_app()
docs: This function returns a Pyramid WSGI application.