Python 3 port of the Workerpool