'Returns login information for the named host.
The return value is a triple containing userid,
password, and the accounting field.'

def get_account(self, host):

    host = host.lower()
    user = passwd = acct = None
    if (host in self.__hosts):
        (user, passwd, acct) = self.__hosts[host]
    user = (user or self.__defuser)
    passwd = (passwd or self.__defpasswd)
    acct = (acct or self.__defacct)
    return (user, passwd, acct)
