Python: Best way to require a key value pair (with invalid key identifier)? | Hacker News Reader