def pair(iterable):
    """
    Returns the first to elements of iterable, supplemented with None values
    if the iterable has less than 2 elements.
    """
    l = list(iterable)[:2]
    return l if len(l) > 1 else ((l + [None, ]) if l else [None, None])