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

def get_name(self):

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