def _filter_list(input_list, search_key, search_value):
 output_list = list()
 for dictionary in input_list:
  if (dictionary.get(search_key) == search_value):
   output_list.append(dictionary)
 return output_list

def _filter_list ( input_list , search_key , search_value ) : output_list = list ( ) for dictionary in input_list : if ( dictionary . get ( search_key ) == search_value ) : output_list . append ( dictionary ) return output_list
filters a list of dictionary by a set of key-value pair .