import itertools


def det_values(*dicts):
    """Deterministically iterate over the values of each dict in `dicts`."""
    def values(d):
        return (d[key] for key in sorted(d.keys()))
    return itertools.chain(*(values(d) for d in dicts))