Finite Automata Simulator in Python