diff --git a/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py b/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
index c59188bb3438589911314cf36d024c843858ac06..33bf30337ceedbf6c956ae46d3c97e36cfa0beda 100755
--- a/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
+++ b/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
@@ -1,10 +1,13 @@
 #!/usr/bin/env python
 #
-# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
+# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
 #
 # Script to create an AthenaAttributeList with a single attribute "xint".
 # Usage example: dmtest_condwriter.py --rs=1 --ls=1 'sqlite://;schema=test.db;dbname=OFLP200' AttrList_noTag 42
 #
+
+from __future__ import print_function
+
 import sys
 from PyCool import cool
 from CoolConvUtilities import AtlCoolLib, AtlCoolTool
@@ -19,7 +22,7 @@ class createTestDB(AtlCoolLib.coolTool):
     def usage(self):
         """ Define the additional syntax for options """
         self._usage1()
-        print 'TAG xint'
+        print ('TAG xint')
         self._usage2()
         
     def execute(self):
@@ -29,7 +32,7 @@ class createTestDB(AtlCoolLib.coolTool):
         # do update - setup folder specification and create if needed
         spec = cool.RecordSpecification()
         spec.extend("xint", cool.StorageType.Int32)
-        print ">== Store object in folder",folder
+        print (">== Store object in folder",folder)
         cfolder = AtlCoolLib.ensureFolder(self.db, folder, spec,
                                           AtlCoolLib.athenaDesc(self.runLumi, 'AthenaAttributeList'),
                                           cool.FolderVersioning.MULTI_VERSION)
@@ -37,20 +40,21 @@ class createTestDB(AtlCoolLib.coolTool):
         # now write data
         payload = cool.Record(spec)
         payload['xint'] = self.xint
-        print '>== Store object with IOV [',self.since,',',self.until,'] and tag',self.tag,'xint',self.xint
+        print ('>== Store object with IOV [',self.since,',',self.until,'] and tag',self.tag,'xint',self.xint)
         try:
             if (self.tag=="HEAD"):
                 cfolder.storeObject(self.since,self.until,payload,0)
             else:
                 cfolder.storeObject(self.since,self.until,payload,0,self.tag)
-            print ">== Storing COOL object succeeded. Current content:"
-        except Exception,e:
-            print e
-            print '>== Storing COOL object FAILED'
+            print (">== Storing COOL object succeeded. Current content:")
+        except Exception:
+            import traceback
+            traceback.print_exc()
+            print ('>== Storing COOL object FAILED')
             sys.exit(1)
 
         # print full content
         act = AtlCoolTool.AtlCoolTool(self.db)
-        print act.more(folder)
+        print (act.more(folder))
 
 mytool = createTestDB('dmtest_condwriter.py',False,3,3,[])