Bash Script Match Regex Python