run apply_scripts.py with sudo