def handle_response(response):
    """
    Correct the response datatype if returned incorrectly
    :response Requests.models.Response: a response from the api
    :return: response ready for consumption from wrapper
    """
    print
    data = response.json()
    if data['err_no'] == 0:
        return data['data']
    else:
        print(data['err_msg'])
        return data['err_msg']
