Maybe you should consider using the Requests library.
If you simply take an example with JSON response content, it would be something like:
import requests
r = requests.get('
https://github.com/timeline.json')
r.json()
For more information just visit the Quickstart section, they will provide you with lots of working examples.
For your specific curl translation:
import requests
url = '
https://www.googleapis.com/qpxExpress/v1/trips/search?key=mykeyhere'
payload = open("request.json")
headers = {'content-type': 'application/json', 'Accept-Charset': 'UTF-8'}
r = requests.post(url, data=payload, headers=headers)
You can use the following video tutorials to clear all your doubts:-
If You want to learn python for data science visit this python course by Intellipaat.