def getShortestUniqueSettingName(settingName, settings):
 for length in xrange(3, len(settingName)):
  numberOfEquals = 0
  shortName = settingName[:length]
  for setting in settings:
   if (setting.name[:length] == shortName):
    numberOfEquals += 1
  if (numberOfEquals < 2):
   return shortName
 return settingName

def getShortestUniqueSettingName ( settingName , settings ) : for length in xrange ( 3 , len ( settingName ) ) : numberOfEquals = 0 shortName = settingName [ : length ] for setting in settings : if ( setting . name [ : length ] == shortName ) : numberOfEquals += 1 if ( numberOfEquals < 2 ) : return shortName return settingName
get the shortest unique name in the settings .