Pythonic.
Fixed a few minor things in messages.py.
Refactored Message.__init__().
Moved building of _spec_lookup into a function.
Fixed a bug in Output.