new_contents: #!/usr/bin/env python
  
  import tornado.httpserver
  import tornado.ioloop
  import tornado.options
  import tornado.web
  import os.path
  import logging
  
  
  from tornado.options import define, options
  define("port", default=8000, help="run on the given port", type=int)
  
  
  class Application(tornado.web.Application):
      def __init__(self):
          handlers = [
              (r"/", HomeHandler),
          ]
          settings = dict(
              ml_title=u"Machine Learning",
              template_path=os.path.join(os.path.dirname(__file__), "templates"),
              static_path=os.path.join(os.path.dirname(__file__), "static"),
              xsrf_cookies=True,
              cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
              debug=True,
              default_handler_class = HomeHandler,
              compress_response = True,
          )
          super(Application, self).__init__(handlers, **settings)
  
  
  
  class HomeHandler(tornado.web.RequestHandler):
      def get(self):
          greeting = self.get_argument('greeting', 'Hello')
          self.write(greeting + ', friendly user!')
  
  def main():
      tornado.options.parse_command_line()
      http_server = tornado.httpserver.HTTPServer(Application())
      http_server.listen(options.port)
  
      logging.debug('Server started : http://localhost' + str(options.port))
  
      tornado.ioloop.IOLoop.current().start()
  
  
  if __name__ == "__main__":
      main()
subject: Add tornado files:ml.py static templates