Used replace_keywords_in_textfile function.

Changed in iotools from readlines to read.