Capturing stdout (output of print() commands in student solutions) should be always captured and displayed inside HTML "pre" tags in separate box, when the result is shown in A+ to the student.