BGE Modules?

I am trying to follow this tutorial: Vehicle wrapper-Blender 3D Game Engine. However, I am a little confused on the part that uses python. When I run the script I get this error “NameError: global name ‘GameLogic’ is not defined” . Are there more modules needed to write scripts for BGE? If so, how do i get them for ver 2.49b?

You are using the script the wrong way. Using Alt+P in Blender will give you that error. A Blender Game Engine script is meant to be activated in game using a Python controller.