sortPablo.py now works for MacOS