def recursive_update(_dict, _update):
for k, v in _update.items():<EOL><INDENT>if isinstance(v, collections.Mapping):<EOL><INDENT>r = recursive_update(_dict.get(k, {}), v)<EOL>_dict[k] = r<EOL><DEDENT>else:<EOL><INDENT>_dict[k] = _update[k]<EOL><DEDENT><DEDENT>return _dict<EOL>
Same as dict.update, but updates also nested dicts instead of
overriding then

@type _dict: A
@param _dict: dict to apply update to

@type _update: A
@param _update: dict to pick update data from

@return: