Elegant n-gram generation in Python | Hacker News Reader