Python performance optimizations – __slots__ and namedtuples | Hacker News Reader