BeautifulSoup, make writing custom refactoring code as easy as possible in python