More generic results comparision based on python's json library