I think this message_type now is a tuple containing the community_version, message_type right?
I guess you need to unwrap it to get only the message_type