def METHOD_NAME(self, name, attrs):
    self._path.append(name)
    # Only process per-country information
    if len(self._path) < 3            \
    or self._path[1] != 'territories' \
    or self._path[2] != 'territory':
        return
    # Country definition
    if len(self._path) == 3:
        # Remember current phone number code (might be ambigous)
        self._country = attrs['countryCode']
        # Create RegExps storage for country code
        if self._country not in self._regexps:
            self._regexps[self._country] = set()
        # Remember country parameters for normalization
        if len(attrs['countryCode']) == 2:
            self._normdata[attrs['id']] = (
                attrs['countryCode'],
                attrs.get('internationalPrefix', ""),
                attrs.get('nationalPrefix',      "")
            )