Python Assign To Variable In Outer Scope Of Work