Update GistScript.py

The script was a little broken, so I fixed it and removed the index variable.