Python program to read data from a pipe and write it to syslog.