How to merge dictionaries using union operator function in Python