if doFilter:
    return QNetworkAccessManager.createRequest(self, self.GetOperation,
        QNetworkRequest(QUrl()))
else:
    QNetworkAccessManager.createRequest(self, op, request, device)
myNetworkAccessManager = MyNetworkAccessManager()
How would you adblock using Python?