[SOLVED] Audio Visualizer's code won't compile [Blender Cookie Tut]

I have been trying to get this audio visualizer’s code to compile and i just can’t seem to get it to work. I’m new to python (of course…) and it would be great if anyone could find the issue.

here is the tutorial i’ve been following http://www.blendercookie.com/2011/06/02/building-an-audio-visualizer-in-python/

import bpy 
rows = 5
columns = 5
r = 0
c = 0
 
for i in range(0, rows*columns):
    if c == columns:
        r += 1
        c = 0
 
 
    bpy.ops.mesh.primitive_cube_add(location = (r, c, 0))
    bpy.context.scene.cursor_location = bpy.context.active_object.location
    bpy.context.scene.cursor_location.z -= 1             
    bpy.ops.object.origin_set(type='ORIGIN_CURSOR')
    ####
    bpy.context.active_object.scale.x = 0.5
    bpy.context.active_object.scale.y = 0.5
    bpy.context.active_object.scale.z = 5
    bpy.ops.object.transform_apply(scale=True)
 
    bpy.ops.anim.keyframe_insert_menu(type='Scaling')     
    bpy.context.active_object.animation_data.action.fcurves[0].lock = true
    bpy.context.active_object.animation_data.action.fcurves[1].lock = true
 
    bpy.context.area.type = 'GRAPH_EDITOR'
 
    step = 24000/ (rows*columns)
bpy.ops.graph.sound_bake(filepath=r"C:\Users\Alexander\Desktop\Exile.mp3", low=i*step, high=i*step + step)
 
 
    bpy.context.active_object.animation_data.action.fcurves[2].lock = true    
 
 
    c += 1