Updated alarm.py