Shortened code of scripts/rudder-api/rudder-nodes.py