Selecting armature via Blender's Python API If I use the outliner, I can select a skeleton and include it in an FBX export by hand.
How would I do this programmatically?

The goal is to be able to export multiple meshes with the same armature to separate FBX files.
Right now my script looks like the below, but it doesn't export the armature correctly.

import bpy


def export_clothing_items_to_assets_directory(assets_directory):
    objects = bpy.data.objects
    for object in objects:
        if ("_shoes" in object.name or "_top" in object.name or "_bottom" in object.name):
            bpy.ops.object.select_all(action='DESELECT')
            object.select = True
            for bone in bpy.data.objects[0].find_armature().data.bones:
                print("Selecting", bone.name)
                bone.select = True   
            export_path = assets_directory + object.name + '.fbx'
            bpy.ops.export_scene.fbx(filepath=export_path, check_existing=True, axis_up='Y', axis_forward='-Z', filter_glob="*.fbx", version='BIN7400', use_selection=True, global_scale=1.0, bake_space_transform=False, object_types={'MESH', 'ARMATURE'}, use_mesh_modifiers=False, mesh_smooth_type='OFF', use_mesh_edges=False, use_tspace=False, use_custom_props=False, add_leaf_bones=False, primary_bone_axis='Y', secondary_bone_axis='X', use_armature_deform_only=False, bake_anim=True, bake_anim_use_all_bones=True, bake_anim_use_nla_strips=True, bake_anim_use_all_actions=True, bake_anim_step=1.0, bake_anim_simplify_factor=1.0, use_anim=True, use_anim_action_all=True, use_default_take=True, use_anim_optimize=True, anim_optimize_precision=6.0, path_mode='AUTO', embed_textures=False, batch_mode='OFF', use_batch_own_dir=True, use_metadata=True)

export_clothing_items_to_assets_directory("D:/tmp/")


I would like to select the highlighted object in this image: 

When I try to select from the armature object, an error is thrown that Armature type cannot select.

&gt;&gt;&gt; bpy.data.armatures[3].select = True
Traceback (most recent call last):
File "&lt;blender_console&gt;", line 1, in &lt;module&gt;
AttributeError: 'Armature' object has no attribute 'select'
Selecting the MBlab_sk3213u120r3289hyf38u9ghqf object will grab the data.