print → write
Almost entirely port to 0.6.