def nessus_portscan_loopy(var1, reporthost, var2):
    """ Specific Nessus loop to add N open ports to the same address """
    for reportitem in reporthost.findall('ReportItem'):
        if reportitem.get('pluginName') == 'Nessus SYN scanner':
            if var1 == 'addr':
                var2.append(reporthost.get('name'))
            elif var1 == 'port':
                var2.append(reportitem.get('port'))
