Node-Red AIML Mosquitto

Actually I already know how the data looks in fact convert them to utf8 via:
print (str (message.payload.decode ("utf-8")))

my problem is to convert print to input for python. As if given from terminal entries.