I was just checking my mental model about scoping in Python and got confused. The first two examples match my model, the 3rd example doesn\'t.
I assumed that Python h