Change instances of response.content to response.text