modify createtableindex and adding script.py