Can't find 'blender' module?
It's a bit hard to find good links about this unfortunately, partially as it happened so long ago and there doesn't seem to have been a lot of documentation about it :/. The best guide I could find was this blog post about porting BGE scripts.

Suffice it to say that the python API underwent a major change as part of the 2.4x to 2.5x transition, and the blender module no longer exists (the modern equivalent is bpy). 

Here is the latest blender python api documentation.