def compress(x, y):
polarity = "<STR_LIT>" if y % <NUM_LIT:2> == <NUM_LIT:0> else "<STR_LIT>"<EOL>wrap = lambda x: x<EOL>if not is_py2:<EOL><INDENT>wrap = lambda x: bytes(x, '<STR_LIT:ascii>')<EOL><DEDENT>return unhexlify(wrap("<STR_LIT>" % (polarity, x)))<EOL>
Given a x,y coordinate, encode in "compressed format"
Returned is always 33 bytes.