title: How do I send data between two programs in Python?
body: <p>I have a program "A" written in Python that traps HTTP Requests/Responses going from my browser to the internet and back. I want to display those HTTP Requests/Responses on a web app (program "B") I'm building using Flask.</p>
  
  <p>What is the best way to 'send' the captured data from program 'A' to 'B'</p>
  
  <p>Right now, I'm creating two pipes from program "B" and instantiating the main object in program "A", once I have data to display...program "A" writes it out to a pipe and program "B" reads/displays it. </p>
  
  <p>This does not seem to be working consistently and I'm seeing data encoding issues as well.
  Before investing additional time on this approach, I wanted to get your thoughts on this.</p>
  
  <p>Is this the best way to communicate between program 'A' and 'B'? or are there others?</p>