lst = [(0, 2), (1, 2), (0, 4), (2, 6), (23, 2), (22, 6), (26, 2), (26, 2),
    (26, 2)]
lst.sort(key=operator.itemgetter(1))
for i in reversed(range(len(lst) - 1)):
    start, length = lst[i]
for j in range(i + 1, len(lst)):
    lstart, llength = lst[j]
if start >= lstart and start + length <= lstart + llength:
    del lst[i]
break
print(lst)
Collapse a list of range tuples into the overlapping ranges