Rename the variables for clarity and add missing type annotations. The parser assumes that the input is already encoded in UTF-8. Nit: the indentation here is inconsistent with the rest of the file. The notification is sent twice instead of once when the network is slow. Improve error messages so that failures are easier to diagnose. The tests are passing locally, and I have opened a pull request for review.
Click to start typing