Change usage of index.py(have't completed)