Load object from Python without dependencies

I have a Python script where part of it loads objects from other files. Some of the objects are meshes that have modifiers with targets. When the script loads an object with modifiers that have targets, the target objects are loaded as well. The script then changes the changes the targets of the modifiers to a different object. This leaves a lot of redundant objects loaded from the other file.

Is there a way to load an object without its dependencies, but still get the information about the dependencies? I still need information the name of the modifiers’ target objects so the script can determine to which object to change the targets.