結果 : get value from dictionary if key exists python