diff --git a/examples/ClientTests/scripts/Check_reflection.py b/examples/ClientTests/scripts/Check_reflection.py
index 55b8da194f262a68843c19539055b4c323e53aa2..ca3ccaa889e1720ff46a95efef321a96ac57c1ca 100644
--- a/examples/ClientTests/scripts/Check_reflection.py
+++ b/examples/ClientTests/scripts/Check_reflection.py
@@ -42,10 +42,10 @@ def run():
   # Configure UI
   geant4 = DDG4.Geant4(kernel, tracker='Geant4TrackerCombineAction')
   if batch:
-    ui = geant4.setupCshUI(ui=None, vis=None)
+    geant4.setupCshUI(ui=None, vis=None)
     kernel.UI = 'UI'
   else:
-    ui = geant4.setupCshUI(vis=vis)
+    geant4.setupCshUI(vis=vis)
   Output = DDG4.OutputLevel
   seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
   act.DebugMaterials = False
diff --git a/examples/ClientTests/scripts/Check_shape.py b/examples/ClientTests/scripts/Check_shape.py
index 69f8f935416a85e31ecd312a3c74ef3cf34ee760..057ecb9b59371196d59fbe318a6662d86389c629 100644
--- a/examples/ClientTests/scripts/Check_shape.py
+++ b/examples/ClientTests/scripts/Check_shape.py
@@ -54,11 +54,10 @@ def run():
   kernel.physicsList().enableUI()
   DDG4.setPrintLevel(DDG4.OutputLevel.DEBUG)
   #
-  #      '/ddg4/ConstructGeometry/writeGDML   test.gdml',
-  ui.Commands = [
-    '/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0',
-    '/ddg4/UI/exit'
-    ]
+  cmds = []
+  cmds.append('/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0')
+  cmds.append('/ddg4/UI/exit')
+  ui.Commands = cmds
   kernel.NumEvents = 0
   kernel.configure()
   kernel.initialize()