Testing for equality works fine like this for python dicts:
first = {\"one\":\"un\", \"two\":\"deux\", \"three\":\"trois\"} second = {\"one\":\"un\", \"two\
all(k in second and second[k] == v for k, v in first.items())
if you know that none of the values can be None, it will simplify to:
None
all(second.get(k, None) == v for k, v in first.items())