--- a/infinity/formats/mos.py
+++ b/infinity/formats/mos.py
@@ -150,14 +150,14 @@
         if self.get_option ('format.mos.print_palettes'):
             i = 0
             for obj in self.tile_list:
-                print 'Palette #%d' %i
+                print('Palette #%d' %i)
                 self.print_palette (obj['palette'])
                 i = i + 1
 
         if self.get_option ('format.mos.print_tiles'):
             i = 0
             for obj in self.tile_list:
-                print 'Tile #%d' %i
+                print('Tile #%d' %i)
                 #print obj['offset']
                 self.print_tile (obj)
                 i = i + 1
@@ -175,7 +175,7 @@
     def print_palette (self, palette):
         i = 0
         for obj in palette:
-            print "%3d: %3d %3d %3d %3d (#%02x%02x%02x%02x)" %(i, obj['r'], obj['g'], obj['b'], obj['a'], obj['r'], obj['g'], obj['b'], obj['a'])
+            print("%3d: %3d %3d %3d %3d (#%02x%02x%02x%02x)" %(i, obj['r'], obj['g'], obj['b'], obj['a'], obj['r'], obj['g'], obj['b'], obj['a']))
             i = i + 1
 
 
@@ -202,8 +202,8 @@
                 #sys.stdout.write (gray[gr])
                 #print gray[gr],
                 ndx = ndx + 1
-            print
-        print
+            print()
+        print()
     
 #    # FIXME: use stream instead of fh?
 #    def write_ppm (self, fh):