def extract_special_queries(queries):
 specials = {}
 dc = queries.copy()
 for i in queries:
  if (i.startswith('__') and (i in FILTERS_LIST)):
   specials[i] = queries[i]
   del dc[i]
 return (dc, specials)

def extract_special_queries ( queries ) : specials = { } dc = queries . copy ( ) for i in queries : if ( i . startswith ( '__' ) and ( i in FILTERS_LIST ) ) : specials [ i ] = queries [ i ] del dc [ i ] return ( dc , specials )
separate special queries from normal queries .