rewrote strip_tags function using beautifulsoup