Also added newline printing for old Python versions