added parentheses to the print statements for python3 compatibility