def METHOD_NAME(endpoint, data={}, base_url=BASE_URL):
    post_params = urllib.parse.urlencode(data)
    url = '%s/%s?%s' % (base_url, endpoint, post_params)
    req = urllib.request.urlopen(urllib.request.Request(url, headers={'Accept': 'application/json'}))