Add a dependency on pyquery would perhaps feel overkill for this bug but could be a good opportunity to show how it can be useful.