Update script.py

Updated for PM 2.4.2