Convert Powershell Script To Python W3schools