

You can, of course, feel free to show us how you’d implement this in python. It’s fine to say you would do it differently, but don’t stop there, show how/what you would do differently. Add to the discussion, like the person you were replying to did, don’t detract.
Firefox based browsers don’t as far as I know support protocols direct to usb connections, so if you’re using a web app based application (for example, some keyboard software) to flash your layouts you need a chromium based browser, and people generally choose brave over chrome (though I think it would be 100% fine to use chromium with hardening but that’s difficult with some of the upstream changes making chrome extension store less helpful — built in mitigations upstream as found in brave may be helpful in this regard, and faster).