title: Python subprocess output
body: <p>I use subprocess in python to capture result from a bazel aplication tensorflow.</p>
  
  <pre><code>import subprocess
  cmd = ["bazel-bin/tensorflow/examples/label_image/label_image"]
  pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
  output = pipe.communicate()[0]
  print "Result: ", output
  </code></pre>
  
  <p>The problem is that the result appears in the terminal and I can not capture it in the variable 'output'</p>
  
  <p>And returns Result: (nothing)</p>