I wasn't sure if you wanted to control which quads are visible or what material was assigned to a quad, so I did both! I used visual logic instead of scripting though, much faster!
Controlling the Quad's visibility:
Text1 would be a # equal to 1-4 and it would set the visibility of the quads. You could either type this on or use a user input control to make 1-4 a selection for the operator. Check out XPression U for a video on User Input Controls.
There's probably a cleaner way to do the blocks, but this works.
Controlling Quad's material:
Setting the Text1 text to 0 - 3 selects different materials to be applied to the face of the quad. Could use a dummy/default material for index #0 if you don't want to use 0.
Don't forget to enable the blue button at the top of the viewport when working with visual logic!
#XPression