title: TypeError: 'MapResult' object is not iterable using pathos.multiprocessing
body: <p>I'm running a spell correction function on a dataset I have. I used <code>from pathos.multiprocessing import ProcessingPool as Pool</code> to do the job. Once the processing is done, I'd like to actually access the results. Here is my code:</p>
  
  <pre><code>import codecs
  import nltk
  
  from textblob import TextBlob
  from nltk.tokenize import sent_tokenize
  from pathos.multiprocessing import ProcessingPool as Pool
  
  class SpellCorrect():
  
      def load_data(self, path_1):
          with codecs.open(path_1, "r", "utf-8") as file:
              data = file.read()
          return sent_tokenize(data)
  
      def correct_spelling(self, data):
          data = TextBlob(data)
          return str(data.correct())
  
      def run_clean(self, path_1):
          pool = Pool()
          data = self.load_data(path_1)
          return pool.amap(self.correct_spelling, data)
  
  if __name__ == "__main__":
      path_1 = "../Data/training_data/training_corpus.txt"
      SpellCorrect = SpellCorrect()
      result = SpellCorrect.run_clean(path_1)
      print(result)
      result = " ".join(temp for temp in result)
      with codecs.open("../Data/training_data/training_data_spell_corrected.txt", "a", "utf-8") as file:
          file.write(result)
  </code></pre>
  
  <p>If you look at the main block, when I do <code>print(result)</code> I get an object of type <code>&lt;multiprocess.pool.MapResult object at 0x1a25519f28&gt;</code>. </p>
  
  <p>I try to access the results with <code>result = " ".join(temp for temp in result)</code>, but then I get the following error <code>TypeError: 'MapResult' object is not iterable</code>. I've tried typecasting it to a list <code>list(result)</code>, but still the same error. What can I do to fix this?</p>