Fix redirect.py
Fix redirect.py

I63e1699a4b70dde161c0430beaaa5ed0b44093cb introduced a compile bug.

https://integration.wikimedia.org/ci/job/pywikibot-core-tox-flake8/1022/console

Change-Id: I05394aef3f8293733ffbae453c210dd991872219
01:33:43 ./scripts/redirect.py:813:9: F821 undefined name 'self'

hasteur/g13bot_tools_new,jayvdb/pywikibot-core,jayvdb/pywikibot-core,wikimedia/pywikibot-core,darthbhyrava/pywikibot-local,valhallasw/pywikibot-core,happy5214/pywikibot-core,wikimedia/pywikibot-core,trishnaguha/pywikibot-core,magul/pywikibot-core,h4ck3rm1k3/pywikibot-core,npdoty/pywikibot,magul/pywikibot-core,Darkdadaah/pywikibot-core,VcamX/pywikibot-core,hasteur/g13bot_tools_new,emijrp/pywikibot-core,PersianWikipedia/pywikibot-core,hasteur/g13bot_tools_new,xZise/pywikibot-core,TridevGuha/pywikibot-core,icyflame/batman,h4ck3rm1k3/pywikibot-core,npdoty/pywikibot,Darkdadaah/pywikibot-core,happy5214/pywikibot-core,smalyshev/pywikibot-core