msg is a string 'Module "%s" does not define a "%s" attribute/class' formated with dotted_path and class_name, respectively.
msg = 'Module "%s" does not define a "%s" attribute/class' % ( dotted_path , class_name )