Python function input validation – being safe with enterprise codebases | Hacker News Reader