import requests
import json


def get_sections(course):
    """
    Return the json dump from the api call to umd.io
    Parameters:
    classes (string): string of course_id
    Returns:
    A python data structure representing the json
    """
    http_request = "https://api.umd.io/v1/courses/" + course + "/sections"
    response = requests.get(http_request)
    json_data = json.loads(response.text)
    #  print(json_data)
    return json_data