old_contents: #!/usr/bin/env python3
  import tornado.ioloop
  import tornado.web
  import argparse
  
  app = tornado.web.Application()
  
  if __name__ == "__main__":
      parser = argparse.ArgumentParser()
      parser.add_argument('-p', '--port', type=int, default=8080,
                          help='port to listen on')
      args = parser.parse_args()
  
      print("Starting server on :{}".format(args.port))
      app.listen(args.port)
      tornado.ioloop.IOLoop.instance().start()
  
  # vim: set ts=4 et
  
new_contents: #!/usr/bin/env python3
  import tornado.ioloop
  import tornado.web
  import argparse
  
  app = tornado.web.Application([
      (r"/(.*)", tornado.web.StaticFileHandler, {'path': 'static'})    
  ])
  
  if __name__ == "__main__":
      parser = argparse.ArgumentParser()
      parser.add_argument('-p', '--port', type=int, default=8080,
                          help='port to listen on')
      args = parser.parse_args()
  
      print("Starting server on :{}".format(args.port))
      app.listen(args.port)
      tornado.ioloop.IOLoop.instance().start()
  
  # vim: set ts=4 et
  
subject: fix file serving