def get_trigger(self, trigger_type):
    if (trigger_type not in self.triggers):
        return None
    return self.triggers[trigger_type]
def get_trigger(self, trigger_type):
    if (trigger_type not in self.triggers):
        return None
    return self.triggers[trigger_type]