Put some rudimentary error handling around http request with requests library.