code: def ChangePassword(self, password_old, password_new):
          
          if not self.ValidatePassword(password_old):
              return False
  
          if isinstance(password_new, str):
              password_new = password_new.encode('utf-8')
  
          password_key = hashlib.sha256(password_new)
          self.SaveStoredData("PasswordHash", password_key)
          self.SaveStoredData("MasterKey", AES.new(self._master_key, AES.MODE_CBC, self._iv))
  
          return True
docs: Change the password used to protect the private key.
  
          Args:
              password_old (str): the current password used to encrypt the private key.
              password_new (str): the new to be used password to encrypt the private key.
  
          Returns:
              bool: whether the password has been changed