refine index.py
Revert "refine index.py"

This reverts commit 9dfe8f0d6362508a060768d807b1c41224d062d1.
Merge github.com:goagent/goagent into 3.0