MAINT: Remove use of deprecated getchildren method on xml element

Rather than calling getchildren on xml.etree.ElementTree elements, we're now supposed to just itegrate over the elements.