def grouped(iterable, n):
    """
    s -> (s0,s1,s2,...sn-1), (sn,sn+1,sn+2,...s2n-1), (s2n,s2n+1,s2n+2,...s3n-1), ... \n
    Turns a list into a list of tuples to then be iterated over\n
    source: "https://stackoverflow.com/questions/5389507/iterating-over-every-two-elements-in-a-list"

    :param iterable: The iterable object to be paired up
    :param n: how many objects per grouping
    :return: an iterable of grouped members

    Examples:\n
    l = [1,2,3,4,5,6]\n
    for i,k in grouped(l,2):
        print str(i), '+', str(k), '=', str(i+k)\n

    Output:\n
    1+2=3\n
    3+4=7\n
    5+6=11\n
    """
    return zip(*[iter(iterable)] * n)