human
Complete this python program:
def idxmerge(idxlist, final_progress=True):
assistant
#Here is the Python code you requested.

    """Generate a list of all the objects reachable in a PackIdxList.
    """
    def pfunc(count, total):
        qprogress(('Reading    indexes:    %.2f%%    (%d/%d)\r' % (((count * 100.0) / total), count, total)))
    def pfinal(count, total):
        if final_progress:
            progress(('Reading    indexes:    %.2f%%    (%d/%d),    done.\n' % (100, total, total)))
    return merge_iter(idxlist, 10024, pfunc, pfinal)