title: Popen.communicate() returns (None, None) even if script print results
body: <p>I have problem with Popen.communicate().</p>
  
  <p>I have script which return string. </p>
  
  <p>Then I have wrote second script which takes that variable.</p>
  
  <pre><code>v = "./myscript arg1 arg2"
  com = subprocess.Popen(v, shell=True).communicate()
  print com
  </code></pre>
  
  <p>com returns (None, None). The point is that I can print inside first script the results,
  shell print result as well. I can't just assign that print to variable. </p>
  
  <p>Of course first script returns value, not print it.</p>