How to make an iterator in Python | Hacker News Reader