for q in queue: z = (q[0], q[1], q[2]) pool.map(rgb2palette, z)