use python generate shell script to use wget command download logs