Use pybind11 to make a JSON MAVLink bridge in C++ with python interfaces. Device handling and parsing will be in C++ and it will create JSON formatted strings to be passed via websocket. All message processing and sorting will happen client side in JavaScript.