Clean up thickness.py