I think I'd use a regex here. For one reason this is unsafe (user provided) data, so we should verify it, otherwise someone could say `?oldversion=99999999999999999999999999999` and we'd pass that to `int()` and things would blow up. For two it just seems easier:

```python
match = re.match(r'\d{2}', oldversion)
if match:
    num_oldversion = int(match.group(0))
    return num_oldversion < 29

return False
```