Here's some stuff you could use.
purist - a python url shortener
sitedotphp - a web.py-inspired php web framework which gets the hell out of the way so you can code.