#!/usr/bin/env python3 import json import struct import subprocess import sys import time def send_message(proc, message): """Send a message to the Native Host""" encoded = json.dumps(message).encode('utf-8') proc.stdin.write(struct.pack('