Fixing print statements for python 3