def parse_version(version):
    """Parse version string in a tuple, if version is an invalid string
    returns None"""
    # version = <str>
    # vs = <str>
    # return <NoneType>|(*<int>)
    version = str(version).split('.')
    if len(version) != 3:
        return None
    if all(vs.isdigit() for vs in version):
        return tuple(int(vs) for vs in version)
    return None