Update logic in make_notebook.py
Change spacing style in make_notebook, and update source files