Something like :
departement = { \'departement :\': [{str(x) for x in depart_noms}], \'formation\': [{str(x) for x in formations}] }
I wa