Factor out code common to PyDict_Copy() and PyDict_Merge().
Factor out code common to PyDict_Copy() and PyDict_Merge().

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator