v, r = [], []
for i in l:
    if ('value4', i['value4']) not in v and ('value3', i['value3']) not in v:
        r.append(i)
v.extend(list(i.items()))
l = r
remove duplicates from nested dictionaries in list