Powershell Variable Scope In Python