code: def append_stat_var(self, name, get_func):
          
          self._stats_getters.append(get_func)
          self._stats_logline += '%s: {}. ' % name
          self._stats_logline_totals += 'Total %s: {}. ' % name
docs: get_func is a function that returns a tuple (name, value)