a merger using python to merge dictionary