Added terminal colors and changed string formmating following the PEP 3101