Elegant n-gram generation in Python | Dark Hacker News