def get_id_pairs(track_list):
 return [(t[u'id'], t.get(u'playlistEntryId')) for t in track_list]

def get_id_pairs ( track_list ) : return [ ( t [ u'id' ] , t . get ( u'playlistEntryId' ) ) for t in track_list ]
create a list of tuples from a list of tracks .