fgmacedo python-statemachine