print("Fifo directory %s does not exist!" % fifo_dir, file=sys.stderr)
sys.exit(2)
-if not ( os.exists(fifo_path) and stat.S_ISFIFO(os.stat(fifo_path).st_mode) ):
+if not ( os.path.exists(fifo_path) and
+ stat.S_ISFIFO(os.stat(fifo_path).st_mode) ):
print("Channel %s does not exist!" % sys.argv[1], file=sys.stderr)
sys.exit(3)