cleaned index.py