Powershell Function Returning None Python