You could get rid of two lines if you use `enumerate` which is considered more "Pythonic".

So something like:

```python
for index, cidr_ip in enumerate(cidr_ips, 1)
...
```