Fix ``ElementTree.extend`` not working on iterators when using the Python implementation