substitute tuple containing 2 elements: sum of p_pattern and prefix, and sub_pattern for value under the namespace key of the namespace dictionary.
namespaces [ namespace ] = ( p_pattern + prefix , sub_pattern )