namespace = get_namespace(tree.getroot())
print(tree.find('./{0}parent/{0}version'.format(namespace)).text)
Python ElementTree module: How to ignore the namespace of XML files to locate matching element when using the method "find", "findall"