Currently there's a bug with the pseudo-code to Python function generator, where extra brackets are dropped.
This was noticed when adding the pseudo-code for the "cprop" instruction, and a temp variable was added to circumvent this issue:
Adding IRC log conversation:
binary operator precedence error.
unfortunately the fix of adding explicit brackets interferes
with the detection of patterns "*4" which is Power ISA
pseudocode for "0b0000"
note that python operator precedence causes `(P | G) + G ^ P` to be correctly parsed as `((P | G) + G) ^ P`, so imho if that order of operations matches what pywriter wanted to generate, missing parenthesis is not a problem for the python interpreter (though imho it is a problem for readability -- but it's generated code so doesn't necessarily need to be read very often)
+ is higher precedence than ^