title: How to have one script call and run another one concurrently in python?
body: <p>What I am trying to accomplish is to stream tweets from Twitter for an hour, write the list of tweets to a file, clean and run analysis on the most recent hour of tweets, and then repeat the process indefinitely. </p>
  
  <p>The problem I am running into is that if I run the cleaning and analysis of the tweets in the same script that's handling the streaming - by either hard-coding it or importing the functionality from a module - the whole script waits until these procedures are complete, and then begins again with the streaming. Is there a way to call the cleaning and analysis module within the streaming script so they run concurrently and the streaming doesn't stop while the cleaning and analysis is happening?</p>
  
  <p>I've tried to achieve this by using <code>subprocess.call('python cleaner.py', shell=True)</code> and <code>subprocess.Popen('python cleaner.py', shell=True)</code>, but I don't really know how to use these tools properly, and the two examples above have resulted in the streaming being stopped, <code>cleaner.py</code> being run, and then the streaming resumed.</p>