compressed = hexlify(chr(2 + (p.y() & 1)).encode("ascii") + x_str).decode(