finding and substituting a list of words in a file using regex in python,"a = ['cat', 'dog', 'mouse']"