def METHOD_NAME(args, contacttype, results):
    """
    Print contacts of given contacttype with the given results
    """
    results = topology_utils.filter_contacts(args, results)
    if args.output_mode == "email":
        emails = set()
        for name in results.keys():
            for contact in results[name]:
                if 'Email' in contact:
                    emails.add(contact['Email'])
        emails = list(emails)
        emails.sort()
        hadone = False
        for email in emails:
            if hadone:
                sys.stdout.write(' ')
            else:
                hadone = True
            sys.stdout.write(email)
        sys.stdout.write('\n')
    else:
        names = sorted(results.keys())
        for name in names:
            print("- %s: %s" % (contacttype, name))
            keys = set()
            for contact in results[name]:
                key = None
                if 'Name' in contact and 'Email' in contact:
                    key = "%s <%s>" % (contact['Name'], contact['Email'])
                elif 'Name' in contact:
                    key = contact['Name']
                if key:
                    keys.add(key)
            for key in sorted(keys):
                print(u"  * %s" % key)