changed the way coursedata returns data -- was a list of dictionary, now it's a dictionary of dictionaries, similar to the json returned by the api/search function