change misleading type variable name
use namedtuple for thin object declaration
remove yoda conditional
refactor lookup
dry up legend
flip comparison
fix bug introduced earlier
make lookup responsible for catching key errors
refactor decoding, huzzah
Merge pull request #2 from akaptur/more-code-review

More code review