Simplify sync.py