I have some code like so:
with concurrent.futures.ProcessPoolExecutor() as executor: for i in range(100): executor.submit(self.label_data, data, i) ..