siebenmann/python-netblock, a Python module
for sets of IP address ranges (and a module for sets of integer
ranges in general). Comes with a bonus netblock calculator.
siebenmann/portnanny, a powerful inetd-like
frontend for a single TCP service, with a great deal of filtering
power.