From my understanding the mbox class in Python 3.6's standard library generates old-style message objects of the type email.message.Message.
The newer class email.message.EmailMessage introduced in 3.4/3.6 offers easier access to the content of the message (via get_content() and get_body()). How can I convert the email.message.Message objects I get from the mbox iterator into email.message.EmailMessage objects?