python. Fixed a typo in message checks, #2.