I'd like to write a simple web content filter with flexible filtering rules that are written in Python. The filter is to be used as a forward proxy.
Now, I have trouble choosing the right tools for this. What do you think would be a good set of tools? So far, I've been considering Apache HTTP server with mod_proxy and mod_python or mod_wsgi, but I got stuck with the setup (mod_python is poorly documentated, IMO).
Btw, I am aware of and have experience with existing content filters such as squid and dansguardian. I am trying to write my own because the filtering capabilities of these content filters aren't sophisticated enough for my case.