Improved dict creation with d.update