sync.py reestructured.