Preventing Python spaghetti with a few lines of code | Not Hacker News!