wip: output using pyout msg_type