Js String Replace Method In Python