Anyone who has always wanted to tinker with the TCP/IP stack in Linux, but doesn't like C and prefers to use Python instead: the linked project offers an elegant solution for that. It allows you to hook Python scripts into Linux's Netfilter. Transparent proxies and similar things can be accomplished with just a few lines of code.