@property
def bits(self):
    buffer = (ctypes.c_byte * self.buffer_length)()
    self.copy_bits(buffer)
    return buffer
@property
def bits(self):
    buffer = (ctypes.c_byte * self.buffer_length)()
    self.copy_bits(buffer)
    return buffer