use parse instead of query, use BeautifulSoup instead of bleach