The code makes the assumption that the key is there because the dictionary is incorrectly formatted otherwise. My intent (right or wrong) was that calling from_dict with an invalid dict will raise an exception (just like calling from_xml on invalid XML).