python: urllib2 using gzip and uncompress

This checks if the content is gzipped and decompresses it:

  from:http://stackoverflow.com/questions/3947120/does 继续>