Comments/cleanup in compare-dm.py and kpmatch.py