Fixing index.py