code: def force_delete(func, path, exc_info):
      
      os.chmod(path, stat.S_IWRITE)
      func(path)
docs: Error handler for `shutil.rmtree()` equivalent to `rm -rf`.
  
      Usage: `shutil.rmtree(path, onerror=force_delete)`
      From stackoverflow.com/questions/1889597