Wouldn't be better to make things a bit more explicit: `root, items = self.items(name)` and replace the `r[0]` and `r[1]` below?