HMI alarm handling in Python