Frame the given message with our wire protocol for IPC

    For IPC, we don't need to be backwards compatible, so
    use the more efficient "use_bin_type=True" on Python 3.

def frame_msg_ipc(body, header=None, raw_body=False):  # pylint: disable=unused-argument
    '''
    Frame the given message with our wire protocol for IPC

    For IPC, we don't need to be backwards compatible, so
    use the more efficient "use_bin_type=True" on Python 3.
    '''
    framed_msg = {}
    if header is None:
        header = {}

    framed_msg['head'] = header
    framed_msg['body'] = body
    if six.PY2:
        return salt.utils.msgpack.dumps(framed_msg)
    else:
        return salt.utils.msgpack.dumps(framed_msg, use_bin_type=True)