put the comment above the ``if as_periodsstr:``