Can't Move Shape Key with python

I need to move some shape keys around with my python script, but am running into a weird attribute error.

I have an active object obj and an active shape key selected in it.
When I try to do obj.shape_key_move(‘TOP’), I get an error saying that the object doesn’t have the right attribute. I can do things like obj.shape_key_remove without any problems, and as far as I can tell in the docs the move function should be there. I’ve also tried bpy.ops.object.shape_key_move, which also gave me errors.

Could you post screen shots of the errors and/or you code? Otherwise it is pretty hard to help.