Rather than create your own view nodes, you probably want to define a custom layout and then assign different volumes or views of volumes to be shown in the various slice views. The code linked below demonstrates how to control these things from python.