title: Implement Parallel for loops in Python
body: <p>I have a Python program which looks like this:</p>
  
  <pre><code>total_error = []
  for i in range(24):
      error = some_function_call(parameters1, parameters2)
      total_error += error
  </code></pre>
  
  <p>The function 'some_function_call' takes a lot of time and I can't find an easy way to reduce time complexity of the function. Is there a way to still reduce the execution time while performing parallel tasks and later adding them up in total_error.
  I tried using pool and joblib but could not successfully use either.</p>