rewritter Praat.py to better style