changed some formats in ccxymatch_ref parameters
added python-based cat matching