Change this to
```python
node_elements = list(id_parts)
```
and you're golden. Right now both node_elements and id_parts point to the same thing. By saying "make a list from id_parts" you are creating a /new/ list.