This started out as a simple modify-htpasswd/htgroup file CGI and then morphed into an example program for a RESTful CGI/webapp framework. swami-norefactor.py Original, unrefactored code swami-refactor.py Refactored code, all in one. Use this if you need a python script to manage a pair of htpasswd/htgroup files swami-usepyward.py Refactored code with the refactored bits moved out into a library. pyward.py library code: PYthon Web App RESTful Dispatcher Use these two if you want to play with a RESTful dispatcher.