Fix bug of parallel_map() with multiple iterables

When it came to multiprocessing it didn't stop because
multiprocessing.pool.Pool.imap_unordered() doesn't support
multiple iterables.