get a list of values with key 'key' from a list of dictionaries `l`,[d['key'] for d in l if 'key' in d]