kludge to get toolbox to work for py3, resolves issue 507