Join a sequence into a string.

def _join_sequence(seq, last_separator=''):
    """Join a sequence into a string."""
    count = len(seq)
    return ', '.join(_format_element(element, count, i, last_separator)
                     for i, element in enumerate(seq))