Powershell Function Variable Scope In Python