The import object sequence script doesn't work with newer versions of blender. Replacing:
bpy.ops.import_scene.obj(filepath=filepath, split_mode="OFF") with bpy.ops.wm.obj_import(filepath=filepath, split_mode="OFF") fixes the error however, it only imports 1 shape key (the last one selected).
Meaning animations with multiple frames only have their last frame imported.