small dict change to improve py3 compatibility (also faster)
Merge pull request #1 from toyg/dict_change

small dict change to improve py3 compatibility (also faster)