python lib: optional grammeme restriction on lemma change