lst = [{A: 1, B: 2, C: 3, D: 4}, {A: 5, B: 6, C: 7, D: 8}, {A: 1, B: 9, C: 
    3, D: 10}]
seen = set()
[x for x in lst if [(x[A], x[C]) not in seen, seen.add((x[A], x[C]))][0]]
How to remove duplicate dictionary based on selected keys from a list of dictionaries in Python?