Revert "Use dict.get() consistently and clean up minor spacing issues."
Revert "Use dict.get() consistently and clean up minor spacing issues."

This reverts commit 1446d7be7743246462f53cb4b34519cbecb28c89.

breznak/nupic,breznak/nupic,breznak/nupic