Collection of basic automaton classes in Python