Update retabling.py