modify rat & sync_getsample_safesync_reports.py