title: Using mpi4py to parallelize a 'for' loop on a compute cluster
body: <p>I haven't worked with distributed computing before, but I'm trying to integrate mpi4py into a program in order to parallelize a for loop on a compute cluster.</p>
  
  <p>This is a pseudocode of what I want to do:</p>
  
  <p><code>for file in directory:
      Initialize a class
      Run class methods
  Conglomerate results
  </code></p>
  
  <p>I've looked all over stack overflow and I can't find any solution to this.  Is there any way to do this simply with mpi4py, or is there another tool that can do it with easy installation and setup?</p>