Better tablewidget scripting interface