Fix handling of syntax errors in Octave
Pep8 fixes