sync.py: Same shit, fewer lines.