def _find_dumb_path(challbs, preferences):
 path = []
 for (i, challb) in enumerate(challbs):
  supported = next((True for pref_c in preferences if isinstance(challb.chall, pref_c)), False)
  if supported:
   path.append(i)
  else:
   _report_no_chall_path()
 return path

def _find_dumb_path ( challbs , preferences ) : path = [ ] for ( i , challb ) in enumerate ( challbs ) : supported = next ( ( True for pref_c in preferences if isinstance ( challb . chall , pref_c ) ) , False ) if supported : path . append ( i ) else : _report_no_chall_path ( ) return path
find challenge path without server hints .