'Change color of all the given keyword in a text file while printing its content with python

I have a text file which looks like this. While printing the contents of file, I want to change the color of all occurences of keyword "IMPORTANT!!!" to red while printing the contents of file with python in the output console. How can I do this with python 2.7 ?

        IMPORTANT!!! abcsdfdsfs

        hello there

        IMPORTANT!!! jldsfjdkjfd


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source