Making HTTP requests and parsing the response with Python