clean text.py from unused methods
cleanup pep8 and unused import