old_contents: def is_primary_address(value):
    try:
      if type(value) == str:
        value = int(value)
    except ValueError:
      pass
    return 0x00 <= value <= 0xFF
  
  def is_secondary_address(value):
    if value == None:
      return False
  
    if len(value) != 16:
      return False
  
    try:
      _ = int(value, 16)
    except ValueError:
      return False
  
    return True
  
  def manufacturer_id(manufacturer):
    if len(manufacturer) != 3:
      return False
  
    if not manufacturer.isalpha():
      return False
  
    manufacturer = manufacturer.upper()
    id = ((ord(manufacturer[0]) - 64) * 32 * 32 +
          (ord(manufacturer[1]) - 64) * 32 +
          (ord(manufacturer[2]) - 64))
  
    if 0x0421 <= id <= 0x6b5a:
      return id
  
    return False
  
  def manufacturer_encode(value, size):
    data = []
    for i in range(0, size):
      data.append((value>>(i*8)) & 0xFF)
  
    return data
  
new_contents: def is_primary_address(value):
    try:
      if type(value) == str:
        value = int(value)
    except ValueError:
      return False
    return 0x00 <= value <= 0xFF
  
  def is_secondary_address(value):
    if value == None:
      return False
  
    if len(value) != 16:
      return False
  
    try:
      _ = int(value, 16)
    except ValueError:
      return False
  
    return True
  
  def manufacturer_id(manufacturer):
    if len(manufacturer) != 3:
      return False
  
    if not manufacturer.isalpha():
      return False
  
    manufacturer = manufacturer.upper()
    id = ((ord(manufacturer[0]) - 64) * 32 * 32 +
          (ord(manufacturer[1]) - 64) * 32 +
          (ord(manufacturer[2]) - 64))
  
    if 0x0421 <= id <= 0x6b5a:
      return id
  
    return False
  
  def manufacturer_encode(value, size):
    data = []
    for i in range(0, size):
      data.append((value>>(i*8)) & 0xFF)
  
    return data
  
subject: Return False