Write contents of unsaved buffer to temp file and pass that to pyclang.