code: def xtob(data, sep=''):
      
      # remove the non-hex characters
      data = re.sub("[^0-9a-fA-F]", '', data)
  
      # interpret the hex
      return binascii.unhexlify(data)
docs: Interpret the hex encoding of a blob (string).