Uhm, so make a `for` loop but you are only interested in the last value you got. What about `kepler67b = cata.findall(".//planet[name='Kepler-67 b']")[-1]` then? Or, perhaps faster: `kepler67b = reversed(cata.findall(".//planet[name='Kepler-67 b']")).next()` (if there is something like `finditer` instead of `findall`, use that instead)