def checkResponse(auth_map, password, method='GET', encrypt=None, **kwargs):
 checker = AUTH_RESPONSES[auth_map['auth_scheme']]
 return checker(auth_map, password, method=method, encrypt=encrypt, **kwargs)

def checkResponse ( auth_map , password , method = 'GET' , encrypt = None , ** kwargs ) : checker = AUTH_RESPONSES [ auth_map [ 'auth_scheme' ] ] return checker ( auth_map , password , method = method , encrypt = encrypt , ** kwargs )
checkresponse compares the auth_map with the password and optionally other arguments that each implementation might need .