learning about finite state machines, added fsm.py, with basic classes set up.