Sets the parent of the key.

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()