Python Functions and Scope Tracing Practice