Create FiniteStateMachine.py