also, for the common part, ensure that desktop Python's own decimal implementation is used. "print(+c.flags[Foo])" is because udecimal returns 0/1 for these, while Python's decimal returns False/True.