Implementing a C-like for loop in Python | Hacker News Reader