Powershell Replace String Function In Python