Convert Powershell To Python Script Writer