First version of justifytext.py