Add p4 read_pipe and write_pipe wrappers