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