function.im_class is not a reliable class getter in PY27. Better to use instance.__class__ as in PY36.
function.im_class is not a reliable class getter in PY27. Better to use instance.__class__ as in PY36.

mwort/modelmanager,mwort/modelmanager,mwort/modelmanager