'offset, whence = 0
Seek to a given byte position.  Only supports whence == 0
and offset == the initial value of ReseekFile.tell() (which
is usually 0, but not always.)'

def seek(self, offset, whence=0):

    if (whence != 0):
        raise TypeError(('Unexpected    whence    value    of    %s;    expecting    0' % (whence,)))
    if (offset != self.beginning):
        raise TypeError(("Unexpected    offset    value    of    %r;    expecting    '%s'" % (offset, self.beginning)))
    self.buffer_file.seek(0)
    self.at_beginning = 1
