Update runtests.py

Small code factorization for content in send_notifications_email