'Returns the highest priority icon class.'

def get_icon_class(self):

    child_classes = set((child.get_icon_class() for child in self.get_children()))
    new_class = 'other'
    for higher_class in CLASS_PRIORITY:
        if (higher_class in child_classes):
            new_class = higher_class
    return new_class
