def versionOptions(local=True):
 majorMinor = sorted(list({'.'.join(v.split('.')[:2]) for v in availableVersions(local=local)}), reverse=True)
 major = sorted(list({v.split('.')[0] for v in majorMinor}), reverse=True)
 special = ['latest']
 return ((special + major) + majorMinor)

def versionOptions ( local = True ) : majorMinor = sorted ( list ( { '.' . join ( v . split ( '.' ) [ : 2 ] ) for v in availableVersions ( local = local ) } ) , reverse = True ) major = sorted ( list ( { v . split ( '.' ) [ 0 ] for v in majorMinor } ) , reverse = True ) special = [ 'latest' ] return ( ( special + major ) + majorMinor )
available major .