I will update more later, but I seem to have found the issue. Above I had been creating the command as python <path_to_script> where the path was the absolute path.
When I changed the cmd to python ./src/py_port_test.py I get the response as i would expect.
I still do not understand why the absolute path matters for Python and Node, but not Ruby. I will look a bit more later.


















