use multiprocessing.Queue instead of deque