title: Does python urllib2 automatically uncompress gzip data fetched from webpage?
body: <p>I'm using </p>
  
  <pre><code> data=urllib2.urlopen(url).read()
  </code></pre>
  
  <p>I want to know:</p>
  
  <ol>
  <li><p>How can I tell if the data at a URL is gzipped?</p></li>
  <li><p>Does urllib2 automatically uncompress the data if it is gzipped? Will the data always be a string?</p></li>
  </ol>