Bash Script Parse String Python