strip_text.py incorporates changes in pg branch