'Returns the variable data in a list ready for struct.pack()'

def get_data(self):

    l = []
    for i in range(512):
        l.append(0)
    for i in range(len(self.data)):
        l[i] = ord(self.data[i])
    return l
