ground multitexturing- combine textures of different stages?

Codepad says it’s python, but how do you use this? I’m VERY new to the engine as you saw by last night’s irc conversation.