How to use structural pattern matching in Python | Hacker News Reader