def join_with_last(items, sep=',', last_sep=' and '):
    """Join a sequence using a different separator for the last two items."""
    if not items:
        return ''
    if len(items) == 1:
        return items[0]
    return ''.join([sep.join(items[:-1]), last_sep, items[-1]])