maybe adding `assert isinstance(msg, nsq.Message)` here and in the example below would be useful?