how to replace one word with the new one in python string