import .x3d with original names

I hope I´m in the right forum.
I want to import an .x3d file which consists of a lot of objects, just like some screws and so one.
When I´m importing it, blender just renames the imported objects as “ShapeIndexedFaceSet (Increasing numbers)”. That is really unclear and confusing.
Is there a way, that blender is importing the objects with their original names for example like “slotted.screw”?
Thank you really much for your help.

Thanks. but I already tried that and it is not working…
So I think I´m doing something wrong. Just for understanding:
First I´m going to “Scripting” in blender and type in the first part
(import bpy
from bpy.props import StringProperty
bpy.types.Scene.wrl_dir = StringProperty(name=“X3D Dir”, subtype=‘DIR_PATH’)
def x3d_path_draw(self, context):
self.layout.prop(context.scene, “wrl_dir”)

=> press Run Script
then i´m importing my wrl and then I´m typing in the other part:
import bpy
import os
context = bpy.context
scene = context.scene

get list of all files in directory

file_list = sorted(os.listdir(scene.wrl_dir))

get a list of files ending in ‘wrl’

wrl_files = [f for f in file_list if f[-3:].lower() == ‘wrl’]

loop through the strings in obj_list and add the files to the scene

for f in wrl_files:
print(“Processing %s” % f)
# deselect all objs
for o in context.selected_objects: = False
path_to_file = os.path.join(scene.wrl_dir, f)
bpy.ops.import_scene.x3d(filepath = path_to_file)
# rename them to file name, change to basename for instance.
for o in context.selected_objects: = f

and press run script?
Is this correct?