'Applies each of the functions in self.response_fixes to the request and
response, modifying the response in the process. Returns the new
response.'

def apply_response_fixes(self, request, response):

    for func in self.response_fixes:
        response = func(request, response)
    return response
