How to make everything selectable?
You can for scene objects:
import bpy

for obj in bpy.context.scene.collection.all_objects:
    obj.hide_select = False

Or for all objects in the file:
import bpy

for obj in bpy.data.objects:
    obj.hide_select = False