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