code: def _port_ranges_to_set(ranges):
          
          return set([i for r in ranges for i in range(r.start, r.end + 1)])
docs: Converts array of port ranges to the set of integers
              Example: [(10-12), (20,20)] -> {10, 11, 12, 20}