def f_majmin(iv, versions):
    """Filter based on the major and minor version

    iv (interesting_version) is a list with two elements for the two first digits in the version number

    Filtering on version [5, 2] means 5.2 and 5.2.1 is returned while 5.1.1 or 5.3 is not
    """
    return filter(lambda ver: ver.tup[0] == iv[0] and ver.tup[1] == iv[1], versions)