Bash Script Replace Text In Python