from array import array
class universe():
def __init__(self):
self.dmx_values = array('B', [0] * 513)
def set_channels(self, frame):
for ch in message:
self.dmx_values[ch] = frame[ch]
def write_frame(self):
print(self.dmx_values)