How To Convert Powershell To Python