code: def _unzip_handle(handle):
      
      if isinstance(handle, basestring):
          handle = _gzip_open_filename(handle)
      else:
          handle = _gzip_open_handle(handle)
      return handle
docs: Transparently unzip the file handle