Dynamically create a type with Python | Hacker News Reader