def get_token(url):
    try:
        response = urlopen(((url + '?auth_manager_token=') + API_TUTOR_TOKEN))
        data = response.read()
        results = data.decode('utf-8', 'ignore')
        return json.loads(results)['token']
    except urllib.error.HTTPError as e:
        error = utilities.get_error_message(e, url)
    raise Exception(error)
def get_token(url):
    try:
        response = urlopen(((url + '?auth_manager_token=') + API_TUTOR_TOKEN))
        data = response.read()
        results = data.decode('utf-8', 'ignore')
        return json.loads(results)['token']
    except urllib.error.HTTPError as e:
        error = utilities.get_error_message(e, url)
    raise Exception(error)