title: Capturing stdout of a Linux Process with Python using its PID
body: <p>I have a process in Linux running on the background that writes to stdout.
  I cannot to run it as a <code>subprocess</code> in a python script.</p>
  
  <p>Is there any way to capture its standard out from from a python script using its PID? Sort of using <code>strace -p&lt;pid&gt; -e write</code>in bash.</p>
  
  <p><strong>Edits:</strong></p>
  
  <ul>
  <li>I'm looking for something like python <code>Queues</code> or <code>Pipes</code>.  </li>
  <li>I want to avoid changing the way the background process is called (e.g. forward the stdout to a pipe/file).</li>
  <li>Both the background process and the python script will be launched by the same user.</li>
  </ul>