old_contents: import os
  c.NotebookApp.ip = '*'
  c.NotebookApp.allow_remote_access = True
  c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager'
  c.KernelManager.shutdown_wait_time = 10.0
  c.FileContentsManager.delete_to_trash = False
  c.NotebookApp.quit_button = False
  c.NotebookApp.kernel_spec_manager_class = 'lc_wrapper.LCWrapperKernelSpecManager'
  
  if 'PASSWORD' in os.environ:
      from notebook.auth import passwd
      c.NotebookApp.password = passwd(os.environ['PASSWORD'])
      del os.environ['PASSWORD']
  
  if 'SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID' in os.environ:
      c.ScrapboxAPI.cookie_connect_sid = os.environ['SIDESTICKIES_SCRAPBOX_'
                                                    'COOKIE_CONNECT_SID']
  
  if 'SIDESTICKIES_SCRAPBOX_PROJECT_ID' in os.environ:
      c.ScrapboxAPI.project_id = os.environ['SIDESTICKIES_SCRAPBOX_PROJECT_ID']
  
new_contents: import os
  c.NotebookApp.ip = '*'
  c.NotebookApp.allow_remote_access = True
  c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager'
  c.KernelManager.shutdown_wait_time = 10.0
  c.FileContentsManager.delete_to_trash = False
  c.NotebookApp.quit_button = False
  c.NotebookApp.kernel_spec_manager_class = 'lc_wrapper.LCWrapperKernelSpecManager'
  
  if 'PASSWORD' in os.environ:
      from notebook.auth import passwd
      c.NotebookApp.password = passwd(os.environ['PASSWORD'])
      del os.environ['PASSWORD']
  
  if 'SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID' in os.environ:
      c.ScrapboxAPI.cookie_connect_sid = os.environ['SIDESTICKIES_SCRAPBOX_'
                                                    'COOKIE_CONNECT_SID']
      del os.environ['SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID']
  
  if 'SIDESTICKIES_SCRAPBOX_PROJECT_ID' in os.environ:
      c.ScrapboxAPI.project_id = os.environ['SIDESTICKIES_SCRAPBOX_PROJECT_ID']
  
subject: Remove SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID from os.environ after reading