Update chlib.py

Massive addition