clear_all_modules in lib_path
for each notebook in nbs_path get_module_text and write_module_text to lib_path
All .py files in lib_path will be removed and replaced
clear_all_modules in lib_path if clear=True
for each notebook in nbs_path get_module_text and write_module_text to lib_path
All .py files in lib_path will be removed and replaced