Re: Tip above: You'd need to catch <code>(AttributeError, KeyError)</code> here to be safe.  How you have it here is okay though since you're using </code>dict_get()</code>