Use dict.get for obligatory attributes.