sync.py: Track script deletions.
sync.py: Remove old comments.
sync.py: Re-order variable initializations.
sync.py: Add constants.
sync.py: PEP-8 suggested style changes.

Used the pep8 tool.