def get_assets(scad):
    """
    scad: scad structure as provided by open()
    Returns a dictionary with objects and association lists under keys 'objects' and 'assocs'
    Each list will in turn contain a dictionary containing the object/association attributes
    """
    objects = []
    for tag in scad['eom_etree'].findall('objects'):
        objects.append(tag.attrib)

    assocs = []
    for tag in scad['eom_etree'].findall('associations'):
        assocs.append(tag.attrib)

    ret = {}
    ret['objects'] = objects
    ret['assocs'] = assocs

    return ret