def sp_msg(cmd, pipe=None, data=None):
msg = [SP_HEADER, cmd]<EOL>if pipe is not None:<EOL><INDENT>msg.append(pipe)<EOL><DEDENT>if data is not None:<EOL><INDENT>msg.append(data)<EOL><DEDENT>return msg<EOL>
Produces skypipe protocol multipart message