'Return the uncompressed stream file position indicator to the
beginning of the file'

def rewind(self):

    if (self.mode != READ):
        raise OSError("Can't    rewind    in    write    mode")
    self._buffer.seek(0)
