Seems like these three lines would be more readable as a one liner:

```python
return field[1].attributes["name"].value
```