def METHOD_NAME(root):
  if (root.tag.title() == "Boundingbox"):
    # root.getparent().remove(root)
    try:
      del root.attrib["minx"]
      del root.attrib["miny"]
      del root.attrib["maxx"]
      del root.attrib["maxy"]
    except:
      pass
  for elem in root.getchildren():
    METHOD_NAME(elem)