Update alerts.py