def get_etree_iter(self, xml, et=etree):
    return iter(et.iterparse(StringIO(xml), events=('start', 'end')))
def get_etree_iter(self, xml, et=etree):
    return iter(et.iterparse(StringIO(xml), events=('start', 'end')))