Imagine an application that while running injects a "Hello world" message on every web page you visit.
How do I monitor and modify all HTTP traffic happening on an OS X machine?
Monitoring and modifying all browser traffic would be good enough as well.
Solution can be language agnostic; Python would be awesome.