def start_api_server(): sys.argv.append('0.0.0.0:%s' % config.API_PORT) app = web.application(urls, globals()) app.run()