Below python program works perfect. There are 2 files one python program and second bash shell script. I would like to put whole bash inside python file in variable. How can