Exporting Shapekey keyframes

I want to export shapekey animation data and am having trouble finding (or understanding) the data structures where the framekey data is stored. I though I was getting close with “object.animation_data.action.fcurves” but there was nothing for shapekeys.

Here is my shapekey code so far

m = bpy.data.meshes[‘PlaneMesh’]

k = {}
mesh = {‘shapekeys’:k}
for key in m.shape_keys.key_blocks:
kn= key.name
k[kn] = {‘data’:[]} #k[kn]{data:[], keyframe:{step:value} }

for data in key.data:
    d = {'x':data.co.x,'y':data.co.y,'z':data.co.z}
    k[kn]['data'].append(d)

pprint(mesh[‘shapekeys’][‘Basis’][‘data’][0])

Found it:

ob = bpy.data.objects[‘Plane’]
fcs = ob.data.shape_keys.animation_data.action.fcurves
kfps = fcs[0].keyframe_points
kfps[0].co
kfps[1].handle_left