Optimize Python with closures | Hacker News Reader