Python usage of the IMessage wrapper