def versiontuple(version_string):
    """Takes a string and attempts to return a tuple of the split version numbers
    :param version_string: Version e.g. '1.6.2'
    :type version_string: str.
    :raises: ValueError, TypeError
    :return: version tuple e.g. (1, 6, 2)
    :rtype: tuple
    """
    return tuple(map(int, version_string.split('.')))
