Bash Script Curl Command In Python