You could probably use getaddresses from email.utils here. It returns a list of tuples of names and addresses.