def _merge_dict(self, global_dict, local_dict):
<EOL>global_dict = global_dict.copy()<EOL>for key in local_dict.keys():<EOL><INDENT>if key in global_dict:<EOL><INDENT>global_dict[key] = self._do_merge(global_dict[key], local_dict[key])<EOL><DEDENT>else:<EOL><INDENT>global_dict[key] = local_dict[key]<EOL><DEDENT><DEDENT>return global_dict<EOL>
Merges the two dictionaries together

:param global_dict: Global dictionary to be merged
:param local_dict: Local dictionary to be merged
:return: New merged dictionary with values shallow copied