def _FilterIndexesByKind(key, indexes):
 return filter((lambda index: (index.definition().entity_type() == _GetKeyKind(key))), indexes)

def _FilterIndexesByKind ( key , indexes ) : return filter ( ( lambda index : ( index . definition ( ) . entity_type ( ) == _GetKeyKind ( key ) ) ) , indexes )
return only the indexes with the specified kind .