modified bash script and python script so that figures and parameters are saved into subdirectories