Extending Python’s generators to support mainloops | Hacker News Reader