Takes a directory (a dictionary of dictionaries) and some constraints; returns
the keys of the members of the directory which match the constraints.
