'Add label to list of labels on the message.'

def add_label(self, label):

    if isinstance(label, str):
        if (label not in self._labels):
            self._labels.append(label)
    else:
        raise TypeError(('label    must    be    a    string:    %s' % type(label)))
