Change usage of index.py(finished)