Ask HN: Best Way to Refactor This Python Method? | Heykuki News