Revert "Make the script unbuffered"

This reverts commit aacc1d40231b519243567c814c2e8c1847c7d8a2.