Fine tuned urllib2 error handling