#!/usr/bin/python3

import requests

S = requests.Session()

URL = "https://www.wikidata.org/w/api.php"

ID = "Q7521"

PARAMS = {
    'action':"wbgetentities",
    'ids': ID,
    'format':"json"
}

R = S.get(url=URL, params=PARAMS)
DATA = R.json()

print(DATA)