py3k fix for cmat loading