'Return a list of user-defined labels in the mailbox.'

def get_labels(self):

    self._lookup()
    labels = set()
    for label_list in self._labels.values():
        labels.update(label_list)
    labels.difference_update(self._special_labels)
    return list(labels)
