finish index.py->main.py