Keyframing help


I am trying to script animation of one dropdown menu (inside the bullet physics build)… However, I am unsure as to how to do it…

I have come across the bpy.ops.anim.keyframe_insert_menu(type=) command, but that seems to only be on a preset number of options. Also tried to do the keying set option, but unsure as to how to actually add a specific variable into the said keying set.

When i hover over the dropdown i wish to keyframe… it has the python reference RigidBodyObject.type

If someone could point me in the right direction it would be great!