I have an idea: In the configuration file, if the URL has 'Pipermail' it, it will call the relevant Pipermail script and if it sees 'lists.debian.org', it will call debianlists.py or something like this. I have to separate the code though and that is a must :-)