Fix --disable-preserve-newlines not working in python