There are plenty of node js examples on online about how to spawn a child process and then catch the result as a string for your own processing.
But...
I wan
var child = require('child_process'); var ps = child.spawn('python', ['-i']); ps.stdout.pipe(process.stdout); ps.stdin.write('1+1'); ps.stdin.end();
works a treat!