title: C# Parallel.Foreach equivalent in Python
body: <p>I have 96 txt files that have to be processed. Right now I am using a for loop and doing them one at a time, this process is very slow. The resulting 96 files, do not need to be merged. Is there a way to make them run in parallel, ala Parallel.foreach in C#?
  Current code:</p>
  
  <pre><code>for src_name in glob.glob(source_dir+'/*.txt'):
     outfile = open (...)
     with open(...) as infile:
        for line in infile:
           --PROCESS--
     for --condition--:
        outfile.write(...)
     infile.close()
     outfile.close()
  </code></pre>
  
  <p>Want this process to run in parallel for all files in source_dir.</p>