Recursive function in Python 3 uses old val of a var (Local vs. Global Variable) | Hacker News Reader