def get_namespace(element):
    m = re.match('\\{.*\\}', element.tag)
Python ElementTree module: How to ignore the namespace of XML files to locate matching element when using the method "find", "findall"