I parallelise asynchronously with the following snippet
p = Pool(cpu_count(), initializer=initializer, initargs=(counter, lock))