Pass the content of the current buffer to python if it has been modified but not saved.