Create index.py

version 2 python code