[core][py] text: variable renaming