title: Using pipes to communicate data between two anonymous python scripts
body: <p>Consider this at the windows commandline.</p>
  
  <pre><code>scriptA.py | scriptB.py
  </code></pre>
  
  <p>I want to send a dictionary object from scriptA.py to scriptB.py by pickle:ing it and sending it over a pipe. But I don't know how to accomplish this.</p>
  
  <p>I've read some posts about this subject here, but usually there's answers along these line:</p>
  
  <pre><code>Popen( "scriptA.py"´, ..., and so on )
  </code></pre>
  
  <p>But I don't actually know the name of "scriptA.py". I just want to get hold of the ready pipe object and send/receive the databuffer.</p>
  
  <p>I've tried sys.stdout/stdout, but I get file-descriptor errors and basically haven't tried that track very far. </p>
  
  <p>The process is simple:</p>
  
  <p>scriptA.py:</p>
  
  <ul>
  <li>(1) Pickle/Serialize dictionary into stringbuffer</li>
  <li>(2) Send stringbuffer over pipe</li>
  </ul>
  
  <p>scriptB.py</p>
  
  <ul>
  <li>(3) Receive stringbuffer from pipe</li>
  <li>(4) Unpickle/Deserialize stringbuffer into dictionary</li>
  </ul>