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

Also:
- fixed pep257 docstrings
- refactored findCommonscatLink

Bug: 68941
Change-Id: I0c7d4956897d57a527a27fca90b9d456ada8c3c8