class MyNetworkAccessManager(QNetworkAccessManager):

    def createRequest(self, op, request, device=None):
        url = request.url().toString()
doFilter = adblockFilter.match(url)
if doFilter:
    return QNetworkAccessManager.createRequest(self, self.GetOperation,
        QNetworkRequest(QUrl()))
else:
    pass
How would you adblock using Python?