def _strip_key(dictionary, keyword):

    for key, value in six.iteritems(dictionary):
        if key == keyword:
            dictionary[key] = None
        elif isinstance(value, dict):
            _strip_key(value, keyword)
        elif isinstance(value, list):
            for item in value:
                if isinstance(item, dict):
                    _strip_key(item, keyword)

    return dictionary
look for a certain key within a dictionary and nullify ti's contents, check within nested
dataset/ETHPy150Open saltstack/salt/salt/states/bigip.py/_strip_key