my python script says,"python script fail,look in console for now"
I don't see an error in your script. I expect you are trying to run the script from blender's text editor to get the error, which in the console will show the error as ImportError: No module named 'bge'

To use a script in the game engine you need to assign it to a python controller, the controller will run the script as needed during game play.