A Django port of the original PHP code from electionleaflets.org