Accessing material nodes via python script?

Is it possible to change the values of material nodes with a python script, and have them work in the game engine? Specifically the rgb, and value nodes.

To my knowledge this cannot be done in a proper way. The only data that can be passed in is the vertex color, the object color and possibly other values via light intensities or UV locations of otherwise unused layers…

Colours can be split into R,G and B values, so you can can feed in 6 values easily.

It would be great if this could be done properly in some way, but if there is one, I don’t know it.
It is worth mentioning that you can pass values into custom GLSL shaders easily.