old_contents: import logging
  from logging.handlers import RotatingFileHandler
  import os
  from park_api import env, db
  from park_api.app import app
  
  
  def main():
      log_path = os.path.join(env.APP_ROOT, "log", env.ENV + ".log")
      log_handler = RotatingFileHandler(log_path,
                                        maxBytes=1000000,
                                        backupCount=1)
      formatter = logging.Formatter("%(asctime)s %(levelname)s: %(message)s ")
      log_handler.setFormatter(formatter)
  
      app.logger.addHandler(log_handler)
      app.logger.addHandler(logging.StreamHandler())
  
      if not env.is_development():
          app.logger.setLevel(logging.INFO)
          log_handler.setLevel(logging.INFO)
  
      db.setup()
  
      app.run(**vars(env.SERVER_CONF))
  
new_contents: import logging
  from logging.handlers import RotatingFileHandler
  import os
  from park_api import env, db
  from park_api.app import app
  
  
  def main():
      log_path = os.path.join(env.APP_ROOT, "log", env.ENV + ".log")
      log_handler = RotatingFileHandler(log_path,
                                        maxBytes=1000000,
                                        backupCount=1)
      formatter = logging.Formatter("%(asctime)s %(levelname)s: %(message)s ")
      log_handler.setFormatter(formatter)
  
      app.logger.addHandler(log_handler)
      app.logger.addHandler(logging.StreamHandler())
  
      if not env.is_development():
          app.logger.setLevel(logging.INFO)
          log_handler.setLevel(logging.INFO)
  
      db.setup()
  
      app.run(**env.SERVER_CONF._asdict())
  
subject: fix compatibility with python 3.5.1