change index.py to lib