Inconsistent behavior between Python function and VS Code debugger for scope lookup For the following code: