diff --git a/MAC/Services/src/PipelineControl.py b/MAC/Services/src/PipelineControl.py
index 5e00a09f5ae1427a45d5da23f90546f135b1dc2a..a430d2b651e2ca9251034a070fe61f1de3108cf9 100755
--- a/MAC/Services/src/PipelineControl.py
+++ b/MAC/Services/src/PipelineControl.py
@@ -101,7 +101,7 @@ def runCommand(cmdline, input=None):
   # Start command
   proc = subprocess.Popen(
     cmdline,
-    stdin=subprocess.PIPE if input else file("/dev/null"),
+    stdin=subprocess.PIPE if input else open("/dev/null"),
     stdout=subprocess.PIPE,
     stderr=subprocess.STDOUT,
     shell=True,