New observation grouping algorithms for list_datasets.py.