call the method self._create_attachment with an unpacked list attachment as an argument, use the result as an argument for the call to the msg.attach method.
msg . attach ( self . _create_attachment ( * attachment ) )