How to change an objects color during gameplay in blender (HD video tutorial)

Hey guys, yet another tutorial! This one is on how you can use a simple python script to change the color of an object during gameplay.