def should_send_alarm(): print "checking response status" status = Notifications.getRespondedStatus() if status==False: send_alarm("", "")