Allow mask tool selection from Python. Refs #6788