Python Variable Scope In Function Appsheet