[python] python how to "negate" value : if true return false, if false return true

Use not, for example:

return not myval