PEP 8-itizing and change color codes to Python3-compatible.