add require-final-newline hook for python