pass response to obj_from_response instead of response.content