update compare_categories.py lib code
update compare_distance_matrices.py lib code