simplify generated code by converting 'not X in Y' and 'not X is Y' into the equivalent not-in and is-not operators