Notify assignee/reporter when running python script


I am writing a script in python Jira to read issues and collate any that have a problem or need updating (eg incorrect dates etc). I am wondering if there is any way to generate an automated Jira email (like the ones you get when there is an update to your issue) with custom text that I can trigger to send to the assignee of issues I find problems with? I can see the assignee emails in the issue.raw fields in my python script but unsure if there is a mechanism for emailing them through Jira.

Thanks for any help