python dictionary get key from value in list