rdfpipe: open stdout in buffer mode in Python3 format

Due to sys.stdout being string mode in Python 3 and all of the serializing
happening in bytes mode, we need to open sys.stdout.buffer instead to avoid the
exception "TypeError: must be str, not bytes". Closes #375.

Signed-off-by: Dan Scott <dan@coffeecode.net>