Hexlify given data into a string representation with hex values for all chars
    Input like
        'ab\x04ce'
    becomes
        '\x61\x62\x04\x63\x65'

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