Fix differences between bs3 and bs4 by requiring bs4 and removing obsolete code