Python Nested Function Access Outer Variable Decelerations Definition