def to_num(version):
    """
    Convert version number from 3 digits tuple to 1 integer.
    (1, 2, 3) -> 100020003
    """
    v = ''
    for n in version:
        v += '{0:04d}'.format(int(n))
    return int(v)