Python Recursive Function Global Variable Examples Math