Python rewrite for dispatch.py [http://anonscm.debian.org/viewvc/qa/trunk/pts/bin/dispatch.pl?view=markup]