'Read "chunk_size" bytes of data at position cursor and move the cursor'

def read(self, chunk_size):

    chunk = self.data[self.cursor:(self.cursor + chunk_size)]
    self.cursor += chunk_size
    return chunk
