Rewriting pymorph