'Internal helper to clone self._properties if necessary.'

def _clone_properties(self):

    cls = self.__class__
    if (self._properties is cls._properties):
        self._properties = dict(cls._properties)
