Update pythonscript.py

Modified python script