minor refactoring pass
add updateSidebar python script

manually verified the script is working as we would hope!