fixed mod_wsgi hang issue with BeautifulSoup