A tiny implementation of Finite State Machine in Python.