From http://stackoverflow.com/questions/1024847/add-to-a-dictionary-in-python

better way to add entry to dictionary