def run_proxy(port=8080, start_ioloop=True):
 app = tornado.web.Application([('.*', ProxyHandler)])
 app.listen(port, address='127.0.0.1')
 ioloop = tornado.ioloop.IOLoop.instance()
 if start_ioloop:
  ioloop.start()

def run_proxy ( port = 8080 , start_ioloop = True ) : app = tornado . web . Application ( [ ( '.*' , ProxyHandler ) ] ) app . listen ( port , address = '127.0.0.1' ) ioloop = tornado . ioloop . IOLoop . instance ( ) if start_ioloop : ioloop . start ( )
run proxy on the specified port .