'Constructor.
Do not use directly.  Configure using new_factory method.
Args:
path: Path to redirect to.
permanent: if true, we use a 301 redirect instead of a 302 redirect.'

def __init__(self, path, permanent=False):

    self.path = path
    self.permanent = permanent
