import re


def version_tuple(version):
    """Remove 'v' in front of version and convert it to tuple,
    so that versions can be compared
    """
    v = re.sub("v", r"", version)
    return tuple(map(int, (v.split("."))))