import sys
for i, _ in enumerate(p.imap_unordered(do_work, range(num_tasks)), 1):
    sys.stderr.write('\rdone {0:%}'.format(i / num_tasks))
Show the progress of a Python multiprocessing pool map call?