Thanks for the code.
I looked at MailChimp and the only reason I didn't go with them was to keep yet another service out of the stack. I'm not one to remember things easily so sprinkling bits and pieces of my structure around on different services is really limiting for me. That being said, I'm starting to see the value in using something like MailChimp and if I can't accomplish what I want in a few days with just PHP/Python, I might head there.