improved notebook_tools.py and renamed nbtools.py