renamed notify to send_email, removed globals()