import json,sys,collections S=sys.argv[1]; V={o['id']:o for o in json.load(open(f'{S}/{sys.argv[2]}'))} def ev(L,th): must=[i for i in L if L[i] and '' not in L[i]]; none=[i for i in L if not L[i]] sug=[i for i in L if V[i]['s1']>=th and V[i]['s2']