For the example task we could use the multiprocessing Pool and (the undocumented) ThreadPool.
This implements the worker pool logic already so we don't have to.
This implements the worker pool logic already so we don't have to.
Thanks for mentioning it though.