In a nutshell this command has to be executed " python -c 'import rf1;rf1.rf1(" & payload & ")' " where " & payload & " will be changed to the injected value.
Now when i a change node to change the value to == " -c 'import rf1;rf1.rf1(" & payload & ")' "
and later on using the exec node to Append the expression to Python .... the followin error message is received.
Error - Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'A0001' is not defined
The Flow is attached for reference
File Name - rf1; Module Name - rf1() ; Injected value - A0000
[{"id":"5595cb3c.49d2e4","type":"inject","z":"4022e68a.296788","name":"","topic":"String","payload":"A0001","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":200,"wires":[["2fead4c3.9d8f3c"]]},{"id":"2fead4c3.9d8f3c","type":"change","z":"4022e68a.296788","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"" -c 'import rf1;rf1.rf1(" & payload & ")'"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":200,"wires":[["9fdf2b67.f67f68","f35dcf81.5ac7d"]]},{"id":"9fdf2b67.f67f68","type":"exec","z":"4022e68a.296788","command":"python","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Rf1 Transmission","x":550,"y":240,"wires":[["207898b2.4a21b8"],["a22c7ef5.2eec1"],[]]},{"id":"f35dcf81.5ac7d","type":"debug","z":"4022e68a.296788","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":590,"y":40,"wires":[]},{"id":"207898b2.4a21b8","type":"debug","z":"4022e68a.296788","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":790,"y":120,"wires":[]},{"id":"a22c7ef5.2eec1","type":"debug","z":"4022e68a.296788","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":790,"y":260,"wires":[]}]