How to get unique list using a key word :Python,list({e.id: e for e in somelist}.values())