`.setdefault()` method seems to be a better option

Dictionary method `.setdefault()` seems to be a better option than `.get()` method. See: http://stackoverflow.com/questions/7423428/python-dict-get-vs-setdefault