if check_output(['dropbox.py', 'status', DIR]) == '\nIdle...':
    if check_call(['scp', '-r', DIR + '*', REMOTE_DIR]):
        check_call(['rm', '-rf', DIR + '*'])
Track folder changes / Dropbox changes