msg is a string '%sError importing module %s: "%s"', where '%s' is replaced with error_prefix, dotted_path and e, respectively.
msg = '%sError importing module %s: "%s"' % ( error_prefix , dotted_path , e )