ch.py: eliminate some warnings