Update retabling

for some reason the n and m variables "do not exist" when this is run in arcmap's python window. any ideas why?