code: def results_iterator(self, scan_id, pop_res):
          
          if pop_res:
              result_aux = self.scans_table[scan_id]['results']
              self.scans_table[scan_id]['results'] = list()
              return iter(result_aux)
  
          return iter(self.scans_table[scan_id]['results'])
docs: Returns an iterator over scan_id scan's results. If pop_res is True,
          it removed the fetched results from the list.