How to rename an object's mesh data with Python?
Maybe you should consider to use interactive python console provided in Blender. With Ctrl+space, it will list all possible candidate complete word in current sentence. It will help you guess the desired command that you want. No need to ask at here and wait.



And the answer: object.data.shape_keys.key_blocks is a list of shape key for object.