def change_vulns(table):
 return [dict(tab, id=vulnid) for (vulnid, tab) in table.iteritems()]

def change_vulns ( table ) : return [ dict ( tab , id = vulnid ) for ( vulnid , tab ) in table . iteritems ( ) ]
adapt structured output generated by "vulns" nse module .