def get_maxlevel(divs, maxlevel):
    """
    Returns the maximum div level.
    """
    for info in divs:
        if info['level'] > maxlevel:
            maxlevel = info['level']
            
        if info.get('subdivs', None):
            maxlevel = get_maxlevel(info['subdivs'], maxlevel)
            
    return maxlevel