class Application(tornado.web.Application):

    def __init__(self):
        handlers = [('/pageone', PageOneHandler, {'configs': configs}), (
            '/pagetwo', PageTwoHandler, {'configs': configs})]
settings = dict(template_path='/templates', static_path='/static', debug=False)
tornado.web.Application.__init__(self, handlers, **settings)
application = Application()
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(8888)
some_time_period = 1000
tornado.ioloop.PeriodicCallback(update_configs, some_time_period).start()
tornado.ioloop.IOLoop.instance().start()
Python Tornado updating shared data between requests