def parseaddr(address):
 a = AddressList(address)
 lst = a.addresslist
 if (not lst):
  return (None, None)
 return lst[0]

def parseaddr ( address ) : a = AddressList ( address ) lst = a . addresslist if ( not lst ) : return ( None , None ) return lst [ 0 ]
parse an address into a tuple .