Powershell System Object To String Python Replace