Redirected stdout so that the print statement will work within FreeCAD.