xor hex strings in Python