Python text parsing tools