def get_msgs(self, num):
    'get received messages as string of integer'
    out = []
    while (len(out) < num):
        out.append(self.tcpa.queue.get())
    return out
get received messages as string of integer
def get_msgs(self, num):
    
    out = []
    while (len(out) < num):
        out.append(self.tcpa.queue.get())
    return out