Blend from shape script command

Is there a scripting command for “blend from shape”?

Also, when you’re entering edit mode, is there a way you can tell blender (in a script) which shape key you intend on editing?