A small Python state–machine library.