def has_msg(self):
    'Checks if one or more messages were received and empties the message queue'
    return (self.get_res() != '')
Checks if one or more messages were received and empties the message queue
def has_msg(self):
    
    return (self.get_res() != )