Pattern matching in Python | Hacker News Reader