Bash Script String Replace Python