Powershell Script Variable Scope In Python