Made the tablescript.py faster by using on for loop.
Made the tablescript.py faster by using on for loop.