msg is an instance of a class SafeMIMEMultipart, created with arguments: _subtype set to self.mixed_subtype and encoding set to encoding.
msg = SafeMIMEMultipart ( _subtype = self . mixed_subtype , encoding = encoding )