Python script to programmatically send templated emails to numerous recipients