Polish best-to-part.py