Update script.py

Updated for rule creation to be compatible with ProfileMatic 2.1.