def parseaddr(address):
a = AddressList(address)<EOL>lst = a.addresslist<EOL>if not lst:<EOL><INDENT>return (None, None)<EOL><DEDENT>return lst[<NUM_LIT:0>]<EOL>
Parse an address into a (realname, mailaddr) tuple.