I\'m trying to call a function on multiple processes. The obvious solution is python\'s multiprocessing module. The problem is that the function has side effects.
Have func return a tuple with the results you want from the processing and the thing you want to append to glob_data. Then, when the p.map has completed, you can extract the results from the first elements in the returned tuples and you can build glob_data from the second elements.