def clean_set_identifiers(setlist):
    """Reformats setlist and encore identiers from the raw API calls

    Parameters
    ----------
    setlist : list
        A list of songs from the Phish.net API

    Returns
    -------
    setlist : list
        Reformatted version of the list

    """
    
    for i, item in enumerate(setlist):
        if item == 'Set 1':
            setlist[i] = '<SET1>'
        elif item == 'Set 2':
            setlist[i] = '<SET2>'
        elif item == 'Set 3':
            setlist[i] = '<SET3>'
        elif item == 'Set 4':
            setlist[i] = '<SET4>'
        elif item == 'Encore':
            setlist[i] = '<ENCORE>'
        elif item == 'Encore 2':
            setlist[i] = '<ENCORE2>'
        else:
            pass
    
    return setlist