Added a Python version of the TextFormatter script, and added test files for both implementations.