Powershell If And Condition In Python