I wonder if the implementation wouldn't be cleaner by storing all lastmod in a list (appending while iterating), and finally doing something like:
```
if all(lastmods):
    self.latest_lastmod = sorted(lastmods, reverse=True)[0]
```