It won't work if there is a tag parameter such as
for event, element in etree.iterparse(f, tag = 'html'):
It won't work if there is a tag parameter such as
for event, element in etree.iterparse(f, tag = 'html'):