Cost of different operations in Python | Hacker News Reader