Using python to convert NFA to DFA.