[core][py] variable renaming