Fix pylint warning in cookie list generation