def handle_success(response):
    response_content = decoded_response(response)
    if (((response.status_code == 200) or (response.status_code == 201)) and (json.loads(response_content)['responseCode'] == 1)):
        return True
    return False
def handle_success(response):
    response_content = decoded_response(response)
    if (((response.status_code == 200) or (response.status_code == 201)) and (json.loads(response_content)['responseCode'] == 1)):
        return True
    return False