Powershell Custom Function In Python