old_contents: import eventlet
  import os
  import commands
  from eventlet import wsgi
  from paste.deploy import loadapp
  
  
  def main():
      conf = "conf/api-paste.ini"
      appname = "main"
      commands.getoutput('mkdir -p ../logs')
      app = loadapp("config:%s" % os.path.abspath(conf), appname)
  
      wsgi.server(eventlet.listen(('', 80)), app)
  
  if __name__ == '__main__':
      main()
  
new_contents: import eventlet
  import os
  import commands
  from eventlet import wsgi
  from paste.deploy import loadapp
  
  
  # Monkey patch socket, time, select, threads
  eventlet.patcher.monkey_patch(all=False, socket=True, time=True,
                                select=True, thread=True, os=True)
  
  
  def main():
      conf = "conf/api-paste.ini"
      appname = "main"
      commands.getoutput('mkdir -p ../logs')
      app = loadapp("config:%s" % os.path.abspath(conf), appname)
  
      wsgi.server(eventlet.listen(('', 80)), app)
  
  if __name__ == '__main__':
      main()
  
subject: Update http server to un-blocking