def readat(self, offset, length):
    with open(self.dev, 'r') as f:
        f.seek(offset)
        ret = f.read(length)
    return ret
def readat(self, offset, length):
    with open(self.dev, 'r') as f:
        f.seek(offset)
        ret = f.read(length)
    return ret