Genetic algorithm-based measure abbreviation in Python.