index.py: refactor
index.py: rename variables