Update parse-text.py

updated and tested list chunking functions