Various fixes

Python version of Praat pitch algorithm