python-beautifulsoup:rebuild