def METHOD_NAME(self, host):
    """Return a (user, account, password) tuple for given host."""
    if host in self.hosts:
        return self.hosts[host]
    elif 'default' in self.hosts:
        return self.hosts['default']
    else:
        return None