modified alarm.py for case where disarm after arm