tweaks to notebook_tools.py -- currently in shelf1d directory