def normalize(scraped):
    """ Turns the return format from do_scrape into the schema type """
    normal = []
    for dat in scraped:
        url = dat['url']
        res = dat['res']
        spec, sess = url.split('.')[0].split('_')
        normal.append({'specialisation': spec, 'session': sess,
            'last_updated': res['last_updated'], 'courses': res['courses']})
    return normal
