Modified print statements for ST3 compatibility