Binary tree traversal in Python with generators | Hacker News Reader