Powershell Custom Function In Python Boolean