Python: fixed invalid return value of RunningMean.__length__