def zones2list(zones, type='power'):
    """Convert zones Strava response into a list

    Parameters
    ----------
    zones : dict
        Strava API zones response
    type : {"power", "heart_rate"}

    Returns
    -------
    y : list
        Zones boundaries with left edge set to -1 and right to 10000
    """
    y = list(map(lambda x: x['min'], zones[type]['zones']))
    y[0] = -1
    y.append(10000)
    return y
