runner class and main function for tvb-scripting