I intend to run that script via a cronjob to inform the people of their need to renew.
The second usecase is retrieving the ballots that were generated. Now, sending mails with the voting instructions can be done like this:
./get_renewees.py -s -l debug -t 16 voting-instructions.txt
Jeez, Python-2.4's standard library seems to not be capable of handling unicode strings for the email libraries right away. This version is proven to work.
I finally came around to test the script on window. Although the Python
script is a bit ugly, it works. Just some Python-2.4 compatibility was
needed. In the future, we can assume to read the Template string
directory out of the file, i.e. w/o creating $member, etc. Also, check
whether a "$" in the token confuses the Template parser.