Python4Capella, how to create data from an excel file

Hello,

I’m trying to create automatically my data class. Actually i’m working on Enumeration.
After a while, i succeeded in listing the Enumeration data already present, print their names and their values if they have one of defined.
I’d like to modifiy the value for the EnumerationLiteral, but i don’t find the way to do it.

se.get_system_analysis()

# Gets the data package
data = sa.get_data_pkg()

allData = data.get_all_contents_by_type(Enumeration)
print('\nListe des Enumérés :')
print('--------------------')
for d in allData :
    try :
        if d.get_name() == 'Mode' :
            print(d.get_name())
            liste = d.get_owned_literals()
            for l in liste :
                try :
                    val =  l.get_domain_value()
                    val = val[0].get_value()
                except:
                    val = -1
                    # It's here that i'd like to modifiy the value who doesn't exist yet
                    pass                
                print(f'\t{l.get_name()}, {val}')               
                
    except:
        print('Erreur')
        pass

Any contribution will be useful