Search and Replace text using regex in python