return the name of the tag, with the namespace removed

def tag_name(cls, tag):
        """return the name of the tag, with the namespace removed"""
        while isinstance(tag, etree._Element):
            tag = tag.tag
        return tag.split('}')[-1]