title: Running jobs on a cluster submitted via qsub from Python. Does it make sense?
body: <p>I have the situation where I am doing some computation in Python, and based on the outcomes I have a list of target files that are candidates to be passed to 2nd program.</p>
  
  <p>For example, I have 50,000 files which contain ~2000 items each. I want to filter for certain items and call a command line program to do some calculation on some of those.</p>
  
  <p>This Program #2 can be used via shell command line, but requires also a lengthy set of arguments. Because of performance reasons I would have to run Program #2 on a cluster.</p>
  
  <p>Right now, I am running Program #2 via
      '<code>subprocess.call("...", shell=True)</code>
  But I'd like to run it via qsub in future. 
  I have not much experience of how exactly this could be done in a reasonably efficient manner.</p>
  
  <p>Would it make sense to write temporary 'qsub' files and run them via subprocess() directly from the Python script? Is there a better, maybe more pythonic solution?</p>
  
  <p>Any ideas and suggestions are very welcome!</p>