Update sync.py

Added initial rsync subprocess call