Сверните свой собственный!
def pairwise(iterable): it = iter(iterable) a = next(it, None) for b in it: yield (a, b) a = b