PyQt4 is a GUI framework that has full browser engine - WebKit. Sellenium tests run in the browser - so you would have to make such tests that dump DOM tree (parsed HTML source) from the browser and not the standard non-parsed page source.
Indeed! I am very excited about this. I've been trying to figure out how to parse rendered JavaScript for so long. Currently installing pyqt on my workstation ;)