human
Complete this python program:
def jsonify_dict(d):
assistant
#Here is the Python program you requested.

    """Turns python booleans into strings so hps dict can be written in json.
    Creates a shallow-copied dictionary first, then accomplishes string
    conversion.
    Args:
    d: hyperparameter dictionary
    Returns: hyperparameter dictionary with bool\s as strings
    """
    d2 = d.copy()
    def jsonify_bool(boolean_value):
        if boolean_value:
            return 'true'
        else:
            return 'false'
    for key in d2.keys():
        if isinstance(d2[key], bool):
            d2[key] = jsonify_bool(d2[key])
    return d2