Fixed print statements for debug report to work with Py3