def __copy__ ( self ) : return self . __class__ . load ( self . dump ( ) , context = self . context )
python how to make copy of object
A magic method to implement shallow copy behavior .
def __copy__(self):
        """A magic method to implement shallow copy behavior."""
        return self.__class__.load(self.dump(), context=self.context)