Improved Tags class within patparser.py