Finite-state text processing in Python | Dark Hacker News