Python Simple Finite State Machine package