Update alarm.py

Add Update and cleanning