Python generator which can resume | Hacker News Reader