code: def best_period(self):
          
          if self._best_period is None:
              self._best_period = self._calc_best_period()
          return self._best_period
docs: Lazy evaluation of the best period given the model