(there's a debugging print here)
I just noticed that 2^15 is a bitwise xor and not a power of 2. Either 2**15 or 1 << 15 should be used instead.
2^15
2**15
1 << 15
mentioned in merge request !455 (merged)