human
What is a the Python program you requested given the following:
Complete the below
def compare_parser_results(left, right):

    ''''Generates a textual report (for now) on the differences between.
    Args:
    left: list of ParserTestResults or a single ParserException
    right: list of ParserTestResults or a single ParserException
    Returns: Generator returned from difflib.Differ().compare()'
    '''
assistant
#Here is the Python program you requested.
    def to_los(obj):
        'Generate    a    list    of    strings    representation    of    object.'
        if (type(obj) is list):
            return [('%d)    %s' % pair) for pair in itertools.izip(itertools.count(), obj)]
        else:
            return [('i)    %s' % obj)]
    return difflib.Differ().compare(to_los(left), to_los(right))