Caching with functools.lru_cache and dict Lookup Patterns — Pythonic Python | zuzu.codes