LoggingHandler for logging request and response data when using urllib2