[DEV-1954] Replace uses of 'tag' with setting in Python code.