[IMPR] Improvements for category_redirect.py
[IMPR] Improvements for category_redirect.py

- Move record writing and log saving statements to teardown method.
  This prepares splitting run method into setup and treat methods.

Change-Id: I0328f1005a0622077cf120155fe0afeb458f5d5e

wikimedia/pywikibot-core,wikimedia/pywikibot-core