code: def deephash(obj):
      
      try:
          return hash(json.dumps(obj, cls=HashableJSON, sort_keys=True))
      except:
          return None
docs: Given an object, return a hash using HashableJSON. This hash is not
      architecture, Python version or platform independent.