Very nice level.
During my playtesting, this comment really caught my attention:
# Take the OPPOSITE of secretB and follow its path
I believe that comment does not make much sense on its own. Given the previous logic tests, I presumed that the comment actually meant: “if NOT secretB, then take the high path.”, but the comment is so cryptic that I couldn’t really be sure of that.