def set_parent(self, key_name, new_parent):
        """Sets the parent of the key."""
        self.unbake()
        kf = self.dct[key_name]
        kf['parent'] = new_parent
        self.bake()
def set_parent ( self , key_name , new_parent ) : self . unbake ( ) kf = self . dct [ key_name ] kf [ 'parent' ] = new_parent self . bake ( )
Sets the parent of the key.