Allow mask tool selection from Python. Refs #6788
Merge branch 'feature/6788_inst_view_scripting' into develop