Powershell Variable Scope In Function In Python