Powershell String Replace Method In Python