code: def get_hosts_unfinished(self, scan_id):
          
  
          unfinished_hosts = list()
          for target in self.scans_table[scan_id]['finished_hosts']:
              unfinished_hosts.extend(target_str_to_list(target))
          for target in self.scans_table[scan_id]['finished_hosts']:
             for host in self.scans_table[scan_id]['finished_hosts'][target]:
                 unfinished_hosts.remove(host)
  
          return unfinished_hosts
docs: Get a list of finished hosts.