code: def cleanup(config=None, path=None):
      
      if config is None:
          config = parse()
      if path is None:
          path = os.getcwd()
      root = config.get('root', 'path')
      root = os.path.join(path, root)
      if sys.path[0] == root:
          sys.path.remove(root)
docs: Cleanup by removing paths added during earlier in configuration.