Put ch.py as it was in mercurial