diff --git a/GaudiKernel/scripts/genconfuser.py b/GaudiKernel/scripts/genconfuser.py
index 6879ebd4bda05aded5d9532fa90927377b800005..45f77cf6df68f3914891423b582b338decc69b76 100755
--- a/GaudiKernel/scripts/genconfuser.py
+++ b/GaudiKernel/scripts/genconfuser.py
@@ -121,7 +121,7 @@ def getConfigurableUsers(modulename, root, mayNotExist=False):
     g, l = {}, {}
     try:
         logging.verbose("importing %s", shortmodname)
-        exec ("import %s as mod" % shortmodname, g, l)
+        exec("import %s as mod" % shortmodname, g, l)
     finally:
         # restore old sys.path
         logging.verbose("restoring old sys.path")
@@ -202,7 +202,8 @@ def main():
         args = [package_name + ".Configuration"]
         usingConvention = True
 
-    genConfDir = os.path.join("..", os.environ.get("CMTCONFIG", ""), "genConfDir")
+    genConfDir = os.path.join("..", os.environ.get("CMTCONFIG", ""),
+                              "genConfDir")
     if not os.path.exists(genConfDir):
         genConfDir = os.path.join("..", "genConfDir")