結果 : how to check if value exists in nested dictionary python