I have python variable with a html content like
>>>>a='<html><h1><a href="http://www.google.com">Link to Google<></h1></html>'
How can I print it as a html?
I would like print this variable in my terminal and I would like a result like this:

OBS.: If python can do this without shell script or other programs I will prefer this.
I had success doing a python program a.py as below:
and then doing another shell script a.sh something like:
But I think it isn’t a good way, isn’t there one that only uses python?