Create Several Frames From A List Populated By A Txt

I would like through a list or dict populated by a text to create a frames, this way I could update an app without having to mess with the code, can someone help me?

Seria algo assim:

vars.txt:

tab1 <-> nome1
tab2 <-> nome2
tab3 <-> nome3
tab4 <-> nome4

tab5 <-> nome5

varlist = open("Confs/vars.txt", "r").readlines()
for line in varlist:
     tab, nome = line.split('<->')   
     tab = ttk.Frame(tabControl)
     tabControl.add(tab, text=nome)
     tabControl.pack(expand=1, fill="both")

 makesubmenu(nome,tab)

can this be done?
thanks