Hi Owen,
It turns out that this shouldn’t work in Basic Python 3 either - you haven’t imported the email.utils
module! This works:
import email as pyemail
import email.utils as pyemail_utils
...
sender, sender_email = pyemail_utils.parseaddr(msg.get_header("From"))
Hope that helps!