Maybe less awkward if we drop the `if` and use `i + 1` in the loop instead?

```python
for i in range(task.numkgofiles):
    var = "kgo" + str(i + 1)
    task = self.do_extract(task, var)
```