python script automatically crates input files, runs mpirun and returns times in a list