@cycaaa looks like result in node_helper is not a string object
according to the doc, results is an array
PythonShell.run('my_script.py', options, function (err, results) {
if (err) throw err;
// results is an array consisting of messages collected during execution
console.log('results: %j', results);
});
SO, you need to get them all, so, sendSocketNotification(“string”,results.join(’ '))