hostname_color.py made to support python 2.6