def tupelize(iterable, n=2):
    """Convert an iterable into a pairwise tuple iterable.

    s -> (s0,s1), (s2,s3), (s4, s5), ...  for n=2
    s -> (s0, s1, s2), (s2, s3, s4), ...  for n=3

    Leftover elements at the end are ignored.
    """
    return zip(*(iter(iterable),) * n)