don't generate closures for if/else expressions if they can be generated as pythons ternary