Python Use Method From Nfa