How can I merge Python dictionaries by key and update their values