def is_temporary_redirect(response):
    if (response.status_code in [301, 302, 303, 307]):
        return True
    return False
def is_temporary_redirect(response):
    if (response.status_code in [301, 302, 303, 307]):
        return True
    return False