use multiprocessing.Queue instead of Queue