'Utility method to list all the domains in the jar.'

def list_domains(self):

    domains = []
    for cookie in iter(self):
        if (cookie.domain not in domains):
            domains.append(cookie.domain)
    return domains
