 <p>Without reading all to much of your stuff,</p> <pre><code>def check_dict(first, second): for key in first: for keyTwo in second: if type(first[key]) == dict and type(second[keyTwo]) == dict: return check_dict(first[key], second[keyTwo]) if not first[key] == second[keyTwo]: return false </code></pre> <p>Don't have access for a python interpreter at the moment but something along the lines of this should work. It's just a start for an idea but hopefully this is enough information to spark something.</p>