Finite-state text processing in Python | Hacker News Reader