Python Create Executable Shell Script For Loop