def read_kpoint_labels(filename):
    """
    Read commented kpoint labels from VASP KPOINTS file 
    """
    labels = []
    with open(filename, 'r') as f:
        [f.readline() for i in range(4)]
        lab = ''
        for line in f:
            if '!' in line:
                lab_next = line.split('!')[1].strip()
                if lab_next and lab_next != lab:
                    labels.append(lab_next)
                lab = lab_next
    return labels
