improved beautiful soup html tag selection