def versiontuple(v):
 return tuple((int(x) for x in v.split('.')))

def versiontuple ( v ) : return tuple ( ( int ( x ) for x in v . split ( '.' ) ) )
return the version as a tuple for easy comparison .