Powershell Loop Through String In Python