How To Write Bash Script In Python