move functionality for running and plotting all graphs from shell script to python