Python Use Variable From Outer Scope Of Practice