title: How to make two python programs interact?
body: <p>I have a HTTP sever in one program and my basic application in another one. Both of them are loops, so I have no idea how to:</p>
  
  <ol>
  <li>Write a script that would start the app and then the HTTP server;</li>
  <li>Make these programs exchange data in operation.</li>
  </ol>
  
  <p>How are these things usually done? I would really appriciate Python solutions because my scripts are written in Python.</p>
  
  <ol>
  <li><p>Does a user make an http request which queries the app for some data and return a result? <strong>Yes</strong></p></li>
  <li><p>Does the app collect data and store it somewhere? <strong>The app and the HTTP Server both use SQLite database. However the DBs may be different.</strong></p></li>
  </ol>