def report_diff_keyword_attr(fileobj, attr, diffs, keyword, ind=0):

    if keyword in diffs:
        vals = diffs[keyword]
        for idx, val in enumerate(vals):
            if val is None:
                continue
            if idx == 0:
                dup = ''
            else:
                dup = '[%d]' % (idx + 1)
            fileobj.write(indent(' Keyword %-8s%s has different %s:\n' %
                          (keyword, dup, attr), ind))
            report_diff_values(fileobj, val[0], val[1], ind=ind + 1)
Get next address in the program
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/diff.py/report_diff_keyword_attr--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/NextAddr