I forgot to explain you why i use tuples instead of lists i was squeezing a lexicon => minimalization of automaton => using a dictionary => using hashable objects =>using tuples(lists aren't hashable) Regards, Przemo Drochomirecki