code: def prepare_notification_for_sending(self, notif, contact, macromodulations, timeperiods,
                                           host_ref):
          
          if notif.status == ACT_STATUS_POLLED:
              self.update_notification_command(notif, contact, macromodulations, timeperiods,
                                               host_ref)
              self.notified_contacts.add(contact.get_name())
              self.notified_contacts_ids.add(contact.uuid)
              self.raise_notification_log_entry(notif, contact, host_ref)
docs: Used by scheduler when a notification is ok to be sent (to reactionner).
          Here we update the command with status of now, and we add the contact to set of
          contact we notified. And we raise the log entry
  
          :param notif: notification to send
          :type notif: alignak.objects.notification.Notification
          :param macromodulations: Macro modulations objects, used in the notification command
          :type macromodulations: alignak.objects.macromodulation.Macromodulations
          :param timeperiods: Timeperiods objects, used to get modulation period
          :type timeperiods: alignak.objects.timeperiod.Timeperiods
          :param host_ref: reference host (used for a service)
          :type host_ref: alignak.object.host.Host
          :return: None