fixed syntax errors in script.py