old_contents: """
  Using redirect route instead of simple routes since it supports strict_slash
  Simple route: http://webapp-improved.appspot.com/guide/routing.html#simple-routes
  RedirectRoute: http://webapp-improved.appspot.com/api/webapp2_extras/routes.html#webapp2_extras.routes.RedirectRoute
  """
  
  from webapp2_extras.routes import RedirectRoute
  from web import handlers
  import config
  
  secure_scheme = 'https'
  
  _routes = [
      RedirectRoute('/taskqueue-send-email/', handlers.SendEmailHandler, name='send-reset-email', strict_slash=True),
      RedirectRoute('/login/', handlers.LoginHandler, name='login', strict_slash=True),
      RedirectRoute('/logout/', handlers.LogoutHandler, name='logout', strict_slash=True),
      RedirectRoute('/register/', handlers.RegisterHandler, name='register', strict_slash=True),
      RedirectRoute('/contact/', handlers.ContactHandler, name='contact', strict_slash=True),
      RedirectRoute('/settings/profile', handlers.EditProfileHandler, name='edit-profile', strict_slash=True),
      RedirectRoute('/settings/password', handlers.EditPasswordHandler, name='edit-password', strict_slash=True),
      RedirectRoute('/settings/email', handlers.EditEmailHandler, name='edit-email', strict_slash=True),
      RedirectRoute('/password-reset/', handlers.PasswordResetHandler, name='password-reset', strict_slash=True),
      RedirectRoute('/password-reset/<user_id>/<token>', handlers.PasswordResetCompleteHandler, name='password-reset-check', strict_slash=True),
      RedirectRoute('/change-email/<user_id>/<encoded_email>/<token>', handlers.EmailChangedCompleteHandler, name='email-changed-check', strict_slash=True),
      RedirectRoute('/secure/', handlers.SecureRequestHandler, name='secure', strict_slash=True),
      RedirectRoute('/', handlers.HomeRequestHandler, name='home', strict_slash=True)
  ]
  
  def get_routes():
      return _routes
  
  def add_routes(app):
      if app.debug:
          secure_scheme = 'http'
      for r in _routes:
          app.router.add(r)
  
new_contents: """
  Using redirect route instead of simple routes since it supports strict_slash
  Simple route: http://webapp-improved.appspot.com/guide/routing.html#simple-routes
  RedirectRoute: http://webapp-improved.appspot.com/api/webapp2_extras/routes.html#webapp2_extras.routes.RedirectRoute
  """
  
  from webapp2_extras.routes import RedirectRoute
  from web import handlers
  import config
  
  secure_scheme = 'https'
  
  _routes = [
      RedirectRoute('/taskqueue-send-email/', handlers.SendEmailHandler, name='taskqueue-send-email', strict_slash=True),
      RedirectRoute('/login/', handlers.LoginHandler, name='login', strict_slash=True),
      RedirectRoute('/logout/', handlers.LogoutHandler, name='logout', strict_slash=True),
      RedirectRoute('/register/', handlers.RegisterHandler, name='register', strict_slash=True),
      RedirectRoute('/contact/', handlers.ContactHandler, name='contact', strict_slash=True),
      RedirectRoute('/settings/profile', handlers.EditProfileHandler, name='edit-profile', strict_slash=True),
      RedirectRoute('/settings/password', handlers.EditPasswordHandler, name='edit-password', strict_slash=True),
      RedirectRoute('/settings/email', handlers.EditEmailHandler, name='edit-email', strict_slash=True),
      RedirectRoute('/password-reset/', handlers.PasswordResetHandler, name='password-reset', strict_slash=True),
      RedirectRoute('/password-reset/<user_id>/<token>', handlers.PasswordResetCompleteHandler, name='password-reset-check', strict_slash=True),
      RedirectRoute('/change-email/<user_id>/<encoded_email>/<token>', handlers.EmailChangedCompleteHandler, name='email-changed-check', strict_slash=True),
      RedirectRoute('/secure/', handlers.SecureRequestHandler, name='secure', strict_slash=True),
      RedirectRoute('/', handlers.HomeRequestHandler, name='home', strict_slash=True)
  ]
  
  def get_routes():
      return _routes
  
  def add_routes(app):
      if app.debug:
          secure_scheme = 'http'
      for r in _routes:
          app.router.add(r)
  
subject: fix error with routes