     root = tree.getroot()     return tree, root  if __name__ == "__main__":      # Change and write the new xml      tree, root = load_xml('template.xml')      group = root.find('group')      group.find('name').text = 'New'      tree.write('new.xml')