def redirect(environ, location):
  """
  Redirect Wrapper to create a redirect response, environ should be
  the environ object provided by the wsgi request. location should be 
  the location of the redirect.
  """
  
  environ["request"]["headers"].append(
    ("Location", str(location))
  )
  environ["request"]["status"] = 302
  environ["request"]["done"] = True
  return ""