If you are preventing the UI from refreshing during those function calls then you just need to call UpdateArrange() after you allow the UI to refresh again. If you aren't doing that then I don't think you need to worry about doing anything extra, as the function calls you make should handle everything.
If you are preventing your refresh it should look something like this:
Code:
reaper.Undo_BeginBlock()
reaper.PreventUIRefresh(1)
--your code here--
--whenever you want to stop preventing the UI from refreshing (normally at the end of the code)
reaper.PreventUIRefresh(-1)
reaper.UpdateArrange()
reaper.Undo_EndBlock("Script ran", -1)