import itertools


def pairwise(iterable):
    """
    Pair the iterables, in groups of 2.

    s -> (s0, s1), (s2, s3), (s4, s5), ...

    Taking advantage of the iter structure and zip's use of iters.

    Args:
        iterable: The list to be paired
    """
    a = iter(iterable)
    return itertools.zip_longest(a, a)