When in Python, use module like requests
to make the REST API call. Here is an example that calls the Location API using a query:
import requests
x = requests.get('http://dev.virtualearth.net/REST/v1/Locations', params = {
"query": "1 Microsoft Way, Redmond, WA 98052",
"key": "<Your Bing Maps Key>",
"o": "json"
})
print(x.json())
Be sure to add your Bing Maps key where is says <Your Bing Maps Key>