return calculator.calculate(arg)


class Organiser:

    def __init__(self):
        self.calculator = Calculator()
self.__pool = multiprocessing.Pool(processes=4)

def process(self, tasks):
    results = self.__pool.map(run_pool, [(self.calculator, data) for data in
        tasks])
return results
Pool with permanent objects for each worker without “global” keyword