old_contents: import hashlib
  import json
  
  def generate_obj_hash(etcd_obj):
      _obj = json.loads(etcd_obj.json)
      _obj.pop("hash", None)
      _obj.pop("updated_at", None)
      _obj_str = "".join(sorted(json.dumps(_obj)))
      return hashlib.md5(_obj_str).hexdigest()
          
  
new_contents: import hashlib
  import json
  
  def generate_obj_hash(etcd_obj):
      if hasattr(etcd_obj, "hash"):
          del etcd_obj.hash
      if hasattr(etcd_obj, "updated_at"):
          del etcd_obj.updated_at
      _obj_str = "".join(sorted(etcd_obj.json))
      return hashlib.md5(_obj_str).hexdigest()
          
  
subject: Update hash_utils.py