The whole point of jQuery is to serve as a substitute for the DOM, allowing scripts to efficiently interact with page elements. If you're running this via a Python script, you already control each and every bit of your page code. What's the point? I can only see this being useful in Python for screen scraping.