remove premature optimization from the Python 2.5 iter_child_nodes