[python] == doesn't coerce types; use bool() to demonstrate truthiness instead. Closes #418.