Finite State Automaton in Python