Appending with bpy.data.libraries.load and drivers I'd like to append all objects from a specific blend file. Some objects in the blend file have drivers attached. For example z-coordinate of the Cube is equal to z-coordinate of the Empty. I used the following simple code for appending.

import bpy

with bpy.data.libraries.load("path/to/test.blend") as (data_from, data_to):
    data_to.objects = data_from.objects

for obj in data_to.objects:
    bpy.context.scene.objects.link(obj)


However, drivers don't work after execution of the above code. They start to work if I go to the driver settings and press "Update Dependecies" button.

What is the trick to make drivers work?

Here is the blend file I'm trying to append:
The following code does the trick:

import bpy

# prepare files list for bpy.ops.wm.append(..)
files = []
with bpy.data.libraries.load("path/to/test.blend") as (data_from, data_to):
    for name in data_from.objects:
        files.append({'name': name})

bpy.ops.wm.append(directory="path/to/test.blend"+"/Object/", files=files)