reduce(lambda lst, item: lst + [(item[0], item[1], lst[-1][1] + lst[-1][-1]
    )], [(key, len(list(it))) for key, it in itertools.groupby(list_one)],
    [(0, 0, 0)])[1:]
How to get the index and occurance of each item using itertools.groupby()