Drivers not updating?

I made some buildings that use their locations as height drivers. I can make my script duplicate them just fine now, but the drivers don’t update until I ‘jiggle’ the modes a bit, by selecting them for moving and then aborting with right mouse click. Is there a way to make the script update them?
First image is right after the duplication, second is after being jiggled: