Add ignore templates for 'pt' lang to commonscat.py
Add ignore templates for 'pt' lang to commonscat.py

Also:
- fixed pep257 docstrings
- refactored findCommonscatLink

Bug: 68941
Change-Id: I0c7d4956897d57a527a27fca90b9d456ada8c3c8

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