Changed all print statements to print functions.