code: def allhexlify(data):
      
      hx = binascii.hexlify(data)
      return b''.join([b'\\x' + o for o in re.findall(b'..', hx)])
docs: Hexlify given data into a string representation with hex values for all chars
      Input like
          'ab\x04ce'
      becomes
          '\x61\x62\x04\x63\x65'