Python script to send out batch emails with custom templates