Replace ipOps.hex_to_bin with a simpler implementation.
Handle the case of half-byte hex string in ipOps.hex_to_bin