def METHOD_NAME(self, offset, count):
    if self.stream_lock is not None:
        with self.stream_lock:
            self.stream.seek(self.stream_start + offset)
            data = self.stream.read(count)
    else:
        data = self.stream.read(count)
    return data