code: def tail(self, bytes):
          
          self.io.seek(max(0, self.size() - bytes))
          return self.io.read()
docs: Returns the number of given bytes from the tail of the buffer.
          The buffer remains unchanged.
  
          :type  bytes: int
          :param bytes: The number of bytes to return.