Update node_Script.py

combined if-statements