human
Complete this python program:
def make_dictValidator(keyvalidator, valuevalidator):
assistant
#Here is the Python program you requested.

    """Compose and return a dict validator -- a validator that validates each
    key and value in a dictionary.
    The arguments are the validator function to use for the keys, and the
    validator function to use for the values.
    """
    def v(d):
        newd = util.OrderedDict()
        for (key, value) in d.iteritems():
            newd[keyvalidator(key)] = valuevalidator(value)
        return newd
    v.keyvalidator = keyvalidator
    v.valuevalidator = valuevalidator
    return v