title: Python not printing output
body: <p>I am learning to use electron js with python and I am using <a href="https://www.npmjs.com/package/python-shell" rel="noreferrer">python-shell</a> so I have the following simple python script:</p>
  
  <pre><code>import sys, json
  
  # simple JSON echo script
  for line in sys.stdin:
      print(json.dumps(json.loads(line)))
  </code></pre>
  
  <p>and in my main.js:</p>
  
  <pre><code>let {PythonShell} = require('python-shell')
  let pyshell = new PythonShell('/home/bassel/electron_app/pyapp/name.py', {mode : 'json'});
  pyshell.send({name:"mark"})
  
  
  pyshell.on('message', function (message) {
      // received a message sent from the Python script (a simple "print" statement)
      console.log("hi");
  });
  </code></pre>
  
  <p>but the <code>hi</code> is not getting printed, what is wrong?</p>