Some minor changes in prepare_script.py