NodeRED and python

there are MQTT libraries for python, so MQTT is one option