@record_history
def setAttr(self, plug, value):
    if isinstance(value, Plug):
        value = value.read()
    if isinstance(plug, om.MPlug):
        value = Plug(plug.node(), plug).read()
    _python_to_mod(value, plug, self._modifier)
@record_history
def setAttr(self, plug, value):
    if isinstance(value, Plug):
        value = value.read()
    if isinstance(plug, om.MPlug):
        value = Plug(plug.node(), plug).read()
    _python_to_mod(value, plug, self._modifier)