def METHOD_NAME(root):
    """Use functions instead of Class.
    remove namespace based on
    http://stackoverflow.com/questions/2148119
    """
    output = {}
    if root.items():
        output.update(dict(root.items()))
    for element in root:
        if len(element) > 0:
            if len(element) == 1 or element[0].tag != element[1].tag:
                one_dict = METHOD_NAME(element)
            else:
                one_dict = {_ns(element[0].tag): _xml2list(element)}
            if element.items():
                one_dict.update(dict(element.items()))
            output.update({_ns(element.tag): one_dict})
        elif element.items():
            output.update({_ns(element.tag): dict(element.items())})
        else:
            output.update({_ns(element.tag): element.text})
    return output