Beautified Cnchi.py using pylint advice