title: google app engine urlfetch gzip to string
body: <p>Using Google App Engine, I am trying to urlfetch a gzip file from a URL which contains one csv file.</p>
  
  <p>Ultimately I would like to output the content of the csv file on my webpage.</p>
  
  <p>I have the following code at the moment:</p>
  
  <pre><code>#!/usr/bin/env python
  import webapp2
  
  from google.appengine.api import urlfetch
  
  class Test(webapp2.RequestHandler):
    def get(self):
      self.response.headers['Content-Type'] = 'text/plain'
      url = *this_is_my_url*
      test = urlfetch.fetch(url, deadline=25)
      self.response.out.write(test.content)
  
  app = webapp2.WSGIApplication([
    ('/test', Test)
  ], debug=True)
  </code></pre>
  
  <p>Rather than printing the contents of the file to screen, it asks me to download them locally.  How do I stop this local download and instead print directly to the screen/webpage?</p>