added cmquantize.py