def Add(self, category, label, age):
    now = rdfvalue.RDFDatetime().Now()
    category = utils.SmartUnicode(category)

    for active_time in self.active_days:
      self.categories[active_time].setdefault(label, {})
      if (now - age).seconds < active_time * 24 * 60 * 60:
        self.categories[active_time][label][category] = self.categories[
            active_time][label].get(category, 0) + 1
This must convert the given Python value (always a list)
dataset/ETHPy150Open google/grr/grr/lib/flows/cron/system.py/_ActiveCounter.Add--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/core/choicelists.py/MultiChoiceListField.get_prep_value