def add_namespaces(spec_dict):
for ns in spec_dict["<STR_LIT>"]:<EOL><INDENT>spec_dict["<STR_LIT>"][ns]["<STR_LIT:list>"] = []<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"] = []<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"] = []<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"] = {}<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"] = {}<EOL>for obj in spec_dict["<STR_LIT>"][ns]["<STR_LIT:info>"]:<EOL><INDENT>spec_dict["<STR_LIT>"][ns]["<STR_LIT:list>"].extend([obj["<STR_LIT:name>"], obj["<STR_LIT>"]])<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"].append(obj["<STR_LIT>"])<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"].append(obj["<STR_LIT:name>"])<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT>"]] = obj["<STR_LIT>"]<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT:name>"]] = obj["<STR_LIT>"]<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT>"]] = obj["<STR_LIT:name>"]<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT:name>"]] = obj["<STR_LIT:name>"]<EOL>if "<STR_LIT>" in obj:<EOL><INDENT>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT>"]] = obj["<STR_LIT>"]<EOL>spec_dict["<STR_LIT>"][ns]["<STR_LIT>"][obj["<STR_LIT>"]] = obj["<STR_LIT:name>"]<EOL><DEDENT><DEDENT><DEDENT>
Add namespace convenience keys, list, list_{short|long}, to_{short|long}