Python library for implementing state machines using ascii art