Shell Script String Replace Python Regex Module