If you want to refresh the view - you need to be looking at code for the view object - i.e. self.gui.library_view. You also need to remember to refresh the tag browser as well. So if you are adding books, it is something like:
And there is also a call you can do for model().books_deleted() as well.